Rust Tutorial

Rust Syntax

Rust Syntax

Every Rust program has rules for how statements are written and executed.

  • Follow Rust syntax rules for statements and blocks
  • Use comments to document code
  • Run examples in the Try it editor

Example

let name = "Sturdee";
println!("{}", name);
Try it Yourself
Run this RUST example in your local environment or course sandbox.