microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
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. |
| 12 | function Main() : Result[] { |
| 13 | // Comments can go anywhere in a program, although they typically |
| 14 | // preface what they refer to. |
| 15 | return []; |
| 16 | } |
| 17 | |