Search⌘ K

Upper and Lower Case

Explore Rust's naming conventions by learning when to use upper case and lower case letters in variable, function, and type names. Understand snake case for variables and functions, and upper camel case for types, while recognizing compiler guidance on capitalization style. This lesson helps you write clean, idiomatic Rust code following accepted conventions.

We'll cover the following...

When to use upper case and when to use lower case in Rust is guided by pretty strong conventions. Convention here means that you’re not forced to do it, but it’s widely accepted ...