Single slash is used to create Xpath with an absolute path i.e. the XPath would be created to start selection from the start node.
/html/body/div[2]/div[1]/div[1]/a
Double slash is used to create Xpath with relative path i.e. the XPath would be created to start selection from anywhere within the document
//div[class="qa-logo"]/a