1
0
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:
Martin Geisler 2023-01-12 07:31:29 +01:00 committed by GitHub
commit ff86e67fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -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>

View File

@ -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>