microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
7c4c1b4c424591b52bf0c1009540c321c7756e69

Branches

Tags

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

Clone

HTTPS

Download ZIP

samples/language/Comments.qs

16lines · modecode

1// # Sample
2// Comments
3//
4// # Description
5// Comments begin with two forward slashes (`//`) and continue until the
6// end of line. Comments may appear anywhere in the source code.
7// Q# does not currently support block comments.
8// Documentation comments, or doc comments, are denoted with three
9// forward slashes (`///`) instead of two.
10
11/// This is a doc-comment for the `Main` operation.
12function Main() : Result[] {
13 // Comments can go anywhere in a program, although they typically
14 // preface what they refer to.
15 return [];
16}
17