Rust logo
Rust 1.83.0
90b35a623

Comments

There is a new edition of the book and this is an old link.

Comments must start with two slashes and continue until the end of the line. For comments that extend beyond a single line, you’ll need to include // on each line.

// So we’re doing something complicated here, long enough that we need
// multiple lines of comments to do it! Whew! Hopefully, this comment will
// explain what’s going on.

Here are the relevant sections in the new and old books: