microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

samples/language/Comments.qs

16lines · modepreview

// # Sample
// Comments
//
// # Description
// Comments begin with two forward slashes (`//`) and continue until the
// end of line. Comments may appear anywhere in the source code.
// Q# does not currently support block comments.
// Documentation comments, or doc comments, are denoted with three
// forward slashes (`///`) instead of two.

/// This is a doc-comment for the `Main` operation.
function Main() : Result[] {
    // Comments can go anywhere in a program, although they typically
    // preface what they refer to.
    return [];
}