mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
Fixed spelling mistakes and typos in the variable lesson
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
# Variables
|
# Variables
|
||||||
|
|
||||||
### Binding and mutablity
|
### Binding and mutability
|
||||||
1. 🌟 A variable can be used only if it has been initialized.
|
1. 🌟 A variable can be used only if it has been initialized.
|
||||||
```rust,editable
|
```rust,editable
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Unused varibles
|
### Unused variables
|
||||||
1. fix the warning below with :
|
1. fix the warning below with :
|
||||||
|
|
||||||
- 🌟 only one solution
|
- 🌟 only one solution
|
||||||
@ -135,7 +135,7 @@ fn main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Destructuring assignments
|
### Destructuring assignments
|
||||||
Introducing in Rust 1.59: You can now use tuple, slice, and struct patterns as the left-hand side of an assignment.
|
Introduced in Rust 1.59: You can now use tuple, slice, and struct patterns as the left-hand side of an assignment.
|
||||||
|
|
||||||
9. 🌟🌟
|
9. 🌟🌟
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user