Comments

This lesson will teach you how to comment your code in Rust.

Comments are programmer readable instructions to help explain things about your code. The compiler ignores them.

Types of Comments in Rust

Rust has two types of comments that are commonly used:

Line

...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy