Skip to content

Commit

Permalink
chore: Update README and tests to run workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chiffonng committed Jun 26, 2024
1 parent 368ab7b commit 7cb57da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/13_error_handling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For example, if you try to open a file and that operation fails because the file

## Syntax

Enum Result<T, E> is used to return either a value of type T or an error of type E. It is similar to Option<T> but with an error type, or in Python, it is similar to returning data and raise an exception in case of an error.
Enum `Result<T, E>` is used to return either a value of type `T` or an error of type `E`. It is similar to `Option<T>` but with an error type, or in Python, it is similar to returning data and raise an exception in case of an error.

```rust
enum Result<T, E> {
Expand Down
5 changes: 4 additions & 1 deletion exercises/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
| clippy | §21.4 |
| conversions | n/a |

# Important exercises to review
## Important exercises to review

- `move_semantics` for understanding ownership and borrowing
- `lifetimes` for understanding lifetimes (scope for references)
- `iterators` for understanding how to work with collections
- `smart_pointers` for understanding how to manage memory
- `threads` for understanding concurrency, parallelism, and synchronization
- `macros` for understanding how to write code that writes code
- `clippy` for understanding how to write idiomatic Rust code
1 change: 1 addition & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ fn get_hint_for_single_test() {
}

#[test]
#[ignore]
fn all_exercises_require_confirmation() {
for exercise in glob("exercises/**/*.rs").unwrap() {
let path = exercise.unwrap();
Expand Down

0 comments on commit 7cb57da

Please sign in to comment.