mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-12 05:24:12 +02:00
Merge pull request #157 from ilyagr/speaker-notes
Add speaker notes about error examples
This commit is contained in:
commit
ff86e67fb1
@ -49,3 +49,12 @@ fn main() {
|
||||
println!("username or error: {username:?}");
|
||||
}
|
||||
```
|
||||
|
||||
<details>
|
||||
|
||||
Key points:
|
||||
|
||||
* The `username` variable can be either `Ok(string)` or `Err(error)`.
|
||||
* Use the `fs::write` call to test out the different scenarios: no file, empty file, file with username.
|
||||
|
||||
</details>
|
||||
|
@ -44,3 +44,12 @@ fn main() {
|
||||
println!("username or error: {username:?}");
|
||||
}
|
||||
```
|
||||
|
||||
<details>
|
||||
|
||||
Key points:
|
||||
|
||||
* The `username` variable can be either `Ok(string)` or `Err(error)`.
|
||||
* Use the `fs::write` call to test out the different scenarios: no file, empty file, file with username.
|
||||
|
||||
</details>
|
||||
|
Loading…
Reference in New Issue
Block a user