@@ -140,7 +140,7 @@ $ editor main.rs
140
140
```
141
141
142
142
Rust files always end in a ` .rs ` extension. If you're using more than one word
143
- in your file name , use an underscore. ` hello_world.rs ` rather than
143
+ in your filename , use an underscore. ` hello_world.rs ` rather than
144
144
` helloworld.rs ` .
145
145
146
146
Now that you've got your file open, type this in:
@@ -200,7 +200,7 @@ about this difference. Just know that sometimes, you'll see a `!`, and that
200
200
means that you're calling a macro instead of a normal function. Rust implements
201
201
` println! ` as a macro rather than a function for good reasons, but that's a
202
202
very advanced topic. You'll learn more when we talk about macros later. One
203
- last thing to mention: Rust's macros are significantly different than C macros,
203
+ last thing to mention: Rust's macros are significantly different from C macros,
204
204
if you've used those. Don't be scared of using macros. We'll get to the details
205
205
eventually, you'll just have to trust us for now.
206
206
@@ -595,8 +595,8 @@ let y = if x == 5i { 10i } else { 15i };
595
595
```
596
596
597
597
This reveals two interesting things about Rust: it is an expression-based
598
- language, and semicolons are different than in other 'curly brace and
599
- semicolon'-based languages. These two things are related.
598
+ language, and semicolons are different from semicolons in other 'curly brace
599
+ and semicolon'-based languages. These two things are related.
600
600
601
601
## Expressions vs. Statements
602
602
@@ -1454,7 +1454,7 @@ Both `continue` and `break` are valid in both kinds of loops.
1454
1454
# Strings
1455
1455
1456
1456
Strings are an important concept for any programmer to master. Rust's string
1457
- handling system is a bit different than in other languages, due to its systems
1457
+ handling system is a bit different from other languages, due to its systems
1458
1458
focus. Any time you have a data structure of variable size, things can get
1459
1459
tricky, and strings are a re-sizable data structure. That said, Rust's strings
1460
1460
also work differently than in some other systems languages, such as C.
0 commit comments