Files
book/redirects/comments.md
2018-12-07 07:19:03 -08:00

24 lines
733 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% Comments
<small>There is a new edition of the book and this is an old link.</small>
> Comments must start with two slashes and continue until the end of the line.
> For comments that extend beyond a single line, youll need to include // on each line.
```rust
// So were doing something complicated here, long enough that we need
// multiple lines of comments to do it! Whew! Hopefully, this comment will
// explain whats going on.
```
---
Here are the relevant sections in the new and old books:
* **[in the current edition: Ch 3.04 — Comments][2]**
* <small>[In the first edition: Ch 3.4 — Comments][1]</small>
[1]: https://doc.rust-lang.org/1.30.0/book/first-edition/comments.html
[2]: ch03-04-comments.html