From 87308857ef8e8eb7c8484b58568766da8d38fc02 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Wed, 12 Jul 2023 09:17:44 -0400 Subject: [PATCH] Fix a typo in ch03-common-programming-concepts.md --- docs/ch03-common-programming-concepts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ch03-common-programming-concepts.md b/docs/ch03-common-programming-concepts.md index ff117f3..ce59dee 100644 --- a/docs/ch03-common-programming-concepts.md +++ b/docs/ch03-common-programming-concepts.md @@ -91,7 +91,7 @@ When shadowing a variable, the new variable does not have to have the same type ## 3.2 - Data Types -Keep in mind that Rust is a statically typed language, so the type of every variable (and how much space it will occupy in memory, if it is stored on the stack) must be known at compile time. Rust's type inference is amazing, so frequently we don't have to tell Rust what type a variable is, but sometimes a variable's type is ambiguous in which case we need to _annotate_ it (e.g. `let guess: 32 = ...`). +Keep in mind that Rust is a statically typed language, so the type of every variable (and how much space it will occupy in memory, if it is stored on the stack) must be known at compile time. Rust's type inference is amazing, so frequently we don't have to tell Rust what type a variable is, but sometimes a variable's type is ambiguous in which case we need to _annotate_ it (e.g. `let guess: u32 = ...`). A "scalar type" represents a single value. There are four kinds of scalar types in Rust: integers, floating-point numbers, Booleans, and characters.