We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e4a37e + 46a68fe commit dfce4adCopy full SHA for dfce4ad
src/hello/comment.md
@@ -34,6 +34,19 @@ fn main() {
34
no actual need for it.
35
*/
36
37
+ // Here's another powerful use of block comments: you can uncomment
38
+ // and comment a whole block by simply adding or removing a single
39
+ // '/' character:
40
+
41
+ /* <- add another '/' before the 1st one to uncomment the whole block
42
43
+ println!("Now");
44
+ println!("everything");
45
+ println!("executes!");
46
+ // line comments inside are not affected by either state
47
48
+ // */
49
50
// You can manipulate expressions more easily with block comments
51
// than with line comments. Try deleting the comment delimiters
52
// to change the result:
0 commit comments