Skip to content

Commit 2ee9b7b

Browse files
committed
fix typos
1 parent 3d359f4 commit 2ee9b7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

content/lessons/02_ownership/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Ownership Model"
3-
date = 2022-10-17
3+
date = 2024-10-08
44
weight = 1
55
[extra]
66
lesson_date = 2024-10-10
@@ -141,7 +141,7 @@ fn main() {
141141

142142
## Let's borrow some books
143143

144-
We now know how to move things around and how to clone them if moving is not possible. But what if making a copy is unnecessary - maybe we just want to let someone look at our resource and keep on holding onto it once their done. Consider the following example:
144+
We now know how to move things around and how to clone them if moving is not possible. But what if making a copy is unnecessary - maybe we just want to let someone look at our resource and keep on holding onto it once they're done. Consider the following example:
145145

146146
```rust
147147
fn read_book(book: String) {

content/lessons/07_smart_pointers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Rust also provides a non-owning pointer in the form of `Weak<T>` (equivalent to
5050

5151
# Mutating the immutable
5252

53-
Good examples and explanation of the inferior mutability pattern and runtime borrow checking can be found in the [book](https://doc.rust-lang.org/book/ch15-05-interior-mutability.html).
53+
Good examples and explanation of the interior mutability pattern and runtime borrow checking can be found in the [book](https://doc.rust-lang.org/book/ch15-05-interior-mutability.html).
5454

5555
Alongisde the `RefCell<T>` type described above, there is an analogous [`Cell<T>`](https://doc.rust-lang.org/std/cell/struct.Cell.html) type that operates on values instead of references.
5656

0 commit comments

Comments
 (0)