diff --git a/Chapter_19.html b/Chapter_19.html index 3ec1507..8b350c6 100644 --- a/Chapter_19.html +++ b/Chapter_19.html @@ -308,7 +308,7 @@ fn main() { }

So it's almost like saying let my_number = { 100 };.

-

Also note that my_number is not mut. We didn't give it a value until we gave it 50, so it never changed its value. In the end, the real code for my_number is just let my_number = 100;.

+

Also note that my_number is not mut. We didn't give it a value until we gave it 50, so it never changed its value. In the end, the real code for my_number is just let my_number = 100;.

diff --git a/print.html b/print.html index 412aff5..b494d22 100644 --- a/print.html +++ b/print.html @@ -1532,7 +1532,7 @@ fn main() { }

So it's almost like saying let my_number = { 100 };.

-

Also note that my_number is not mut. We didn't give it a value until we gave it 50, so it never changed its value. In the end, the real code for my_number is just let my_number = 100;.

+

Also note that my_number is not mut. We didn't give it a value until we gave it 50, so it never changed its value. In the end, the real code for my_number is just let my_number = 100;.

Collection types

Rust has a lot of types for making a collection. Collections are for when you need more than one value in one spot. For example, you could have information on all the cities in your country inside one variable. We will start with arrays, which are fastest but also have the least functionality. They are kind of like &str in that way.

Arrays