cognitive-engineering-lab / rust-book

The Rust Programming Language: Experimental Edition
https://rust-book.cs.brown.edu
Other
503 stars 82 forks source link

Possible to use /* */ for block comments #171

Closed block0xhash closed 3 months ago

block0xhash commented 3 months ago

I suppose the book should mention that one can use /* */ for comments that extend beyond a single line instead of using // on every line

https://rust-book.cs.brown.edu/ch03-04-comments.html image

image

willcrichton commented 3 months ago

Good idea, I'll add this to the section.