mokou
af301a2efe
feat(errors5): add simpler explanation for box dyn
2 years ago
mokou
c34e2adcbb
feat(errors): Improve comments and hints
2 years ago
Noah Cairns
5e1ca4b995
fix(errors5): improve exercise instructions
2 years ago
Steven nguyen
582320aded
chore(errors1): use `is_empty()` instead of `len() > 0`
...
more idiomatic according to clippy
2 years ago
mokou
ed0f278a8f
chore: remove mod.rs files and exercises feature
2 years ago
diannasoreil
51817820f2
Merge pull request #961 from J-S-Kim/main
...
fix(errors6.rs): remove one answer code
2 years ago
mokou
76a36dd385
chore: update errors1 comments and hint
2 years ago
stevenfukase
60bb7cc393
Fix test ( #958 )
...
fix(errors1): don't modify tests
2 years ago
J-S-Kim
43d0623086
fix(errors6.rs): remove one answer code
...
Although marked as 'TODO', three tests pass without any implementation because the correct answer code already exists.
2 years ago
x-hgg-x
179a75a68d
fix: Include exercises folder in the project structure behind a feature ( #917 )
...
closes #859
closes #913
closes #942
2 years ago
zydxhs
cbcde34540
fix(errors1): Add a comment to make the purpose more clear ( #486 )
...
Signed-off-by: zydxhs <johnsmithcry@163.com>
3 years ago
Taylor Yu
b7ddd09fab
address review feedback
...
Adjust error text and naming to conform with best practices.
Use `map_err()` instead of `or()`. Wrap lower-level errors instead of
ignoring their details.
Also, don't "cheat" by bypassing the `new()` function in tests.
Fix a dangling reference in the try_from_into hints.
3 years ago
Taylor Yu
68d3ac567c
feature: improve error_handling exercises
...
Add new exercises errors5 and errors6, to introduce boxed errors and
custom error enums more gently. Delete errorsn, because it tried to do
too much too soon.
3 years ago
Taylor Yu
50ab289da6
fix: rename result1 to errors4
...
Also put it in the ERROR HANDLING section where it probably belongs.
3 years ago
Zerotask
249ad44cc0
docs(exercises): updated all exercises readme files
...
all exercises readme files now have a unified structure and a description
3 years ago
Zerotask
1120db57a6
docs(errors): add additional help for Result/Boxing
...
add additional help information provided by the rust by example book
3 years ago
Koalab99
ee7cdc66b3
chore: Removed extra whitespaces
...
Co-authored-by: Corentin ARNOULD <corentin.arn@gmail.com>
4 years ago
Evan Carroll
2b20c8a0f5
fix(errorsn): Try harder to confine the user. ( #388 )
4 years ago
Christofer Bertonha
c301814d68
chore: Remove deprecated description from error_handling/errorsn.rs
4 years ago
Ufuk Celebi
6c3cc2caf5
chore: delete orphaned `error_handling/option1.rs`
...
`error_handling/option1.rs` has been replaced by `option/option1.rs` and
is not referenced in `info.toml` any more.
4 years ago
marisa
1a7bb5a400
Address feedback
5 years ago
marisa
ec2d4bd3ee
Merge branch 'master' into refactor-hints
5 years ago
marisa
9bdb0a12e4
feat: Refactor hint system
...
Hints are now accessible using the CLI subcommand `rustlings hint
<exercise name`.
BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
5 years ago
Roberto Vidal
2cdd61294f
feat: improve `watch` execution mode
...
The `watch` command now requires user action to move to the next
exercise.
BREAKING CHANGE: this changes the behavior of `watch`.
5 years ago
marisa
dcfb427b09
fix(errors3): Update hint
...
Closes #185 .
5 years ago
Niklas Anderson
ead4f7af9e
fix(option1): Fix arguments passed to assert! macro
5 years ago
Damian S
8109cbad97
fix(errorsn.rs) Update the deprecated syntax by adding dyn to trait objectscloses #211
5 years ago
Niklas Anderson
a750e4a1a3
fix(option1): Add test for prematurely passing exercise
...
Fixes the bug referenced in #160 , but does not address the larger feature work referenced by the issue.
5 years ago
Russell Cousineau
63c133e4a3
chore: Fix a couple broken book links
5 years ago
bors
8bf8cbbd61
Auto merge of #162 - c-rustacean:rustfmt-and-ws-fixes, r=komaeda
...
errorsn.rs: Separate also the hints from each other to avoid accidental viewing
5 years ago
Eddy Petrisor
f507844102
errorsn.rs: Separate also the hints from each other to avoid accidental viewing
...
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
5 years ago
bors
fffbb60ed9
Auto merge of #161 - c-rustacean:rustfmt-and-ws-fixes, r=komaeda
...
Rustfmt and ws fixes
5 years ago
Eddy Petrisor
9aec4abc4d
rustfmt the exercises
...
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
5 years ago
Eddy Petrisor
d6d696b66a
errorsn.rs: Separate hints from code, so hints are not accidentally seen
...
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
5 years ago
Julien Bisconti
187d2ad226
Update errors1.rs
...
Add Result type signature as it is difficult for new comers to understand Generics and Error all at once
5 years ago
Diod FR
d7e58ee1af
Fix links by deleting book version
6 years ago
zacanger
c5a374fbf2
Fix permissions on source files
6 years ago
Kyle Isom
c1f4257a91
errors2.rs: update link to Rust book.
6 years ago
delet0r
b0c9b33978
Changed Rust Book versions in links to 2018
...
Forgot to add changes to last commit.
6 years ago
delet0r
0973e60056
Created sub READMEs for CLI only version
...
Sub READMEs contain the relevant resources from the main
README of the web version. All second edition Rust Book links
were updated to the 2018 edition.
Fixed to typos in main README.md.
6 years ago
olivia
f7846af7ac
right let's try this one again
6 years ago