Search⌘ K

What Does That Mean?

Explore fundamental Rust concepts including functions, macros, strings, and statements. Understand how these elements form the basics of Rust programming, enabling you to read and write simple programs with confidence.

We'll cover the following...
Rust 1.40.0
fn main() {
println!("Hello World!");
}

There are a number of things to learn here. We’ll be going into more depth on all of this throughout the tutorial. To make it easier to talk about, we’ll start with some basic terms. If some of this seems confusing, don’t worry. We’ll be working with all of this throughout the tutorial, and it will start to make sense.

  • fn
    The fn is short for “function.” In Rust (and most other programming languages), a function means “tell me some information, I’ll do some things, and ...