Skip to content

Commit a1e6b82

Browse files
committed
Fix typos in 05 and 08
1 parent 9999ab4 commit a1e6b82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

05_vectors_and_result_enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Crashing your program is probably not the best way to handle an error, unless yo
102102
For now we'll use the `unwrap` method.
103103
We'll explore different ways of handling a `Result` and doing proper error handling later on in this course.
104104

105-
For now, let's our function so that we are actually working with the underlying vector of bytes and not the wrapped `Result` type:
105+
For now, let's update our function so that we are actually working with the underlying vector of bytes and not the wrapped `Result` type:
106106

107107
```rust
108108
fn read_version(transaction_hex: &str) -> u32 {

08_traits_and_reading_bytes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub trait Read {
9191

9292
You'll notice there's no function body, just the signature.
9393
It means the `read` method itself is not actually implemented with any logic in the trait declaration.
94-
We expect the types that "implement" this trait to aactually provide the function logic for any *required* method, or trait methods, that have no implementation.
94+
We expect the types that "implement" this trait to actually provide the function logic for any *required* method, or trait methods, that have no implementation.
9595

9696
A trait can also provide other methods that a type can get access to once it has implemented the trait.
9797
These are known as *provided* methods and are considered *default* implementations since they can also be overwritten.

0 commit comments

Comments
 (0)