File tree Expand file tree Collapse file tree 8 files changed +9
-9
lines changed
error/multiple_error_types Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33As we know testing is integral to any piece of software! Rust has first-class
44support for unit and integration testing ([ see this
5- chapter] ( https://doc.rust-lang.org/book/second-edition/ ch11-00-testing.html ) in
5+ chapter] ( https://doc.rust-lang.org/book/ch11-00-testing.html ) in
66TRPL).
77
88From the testing chapters linked above, we see how to write unit tests and
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ do that unless it's a test or quick prototype).
2828For a more rigorous discussion of error handling, refer to the error
2929handling section in the [ official book] [ book ] .
3030
31- [ book ] : https://doc.rust-lang.org/book/second-edition/ ch09-00-error-handling.html
31+ [ book ] : https://doc.rust-lang.org/book/ch09-00-error-handling.html
Original file line number Diff line number Diff line change @@ -68,6 +68,6 @@ fn main() {
6868[ Dynamic dispatch] [ dynamic_dispatch ] and [ ` Error ` trait] [ error ]
6969
7070[ box ] : https://doc.rust-lang.org/std/boxed/struct.Box.html
71- [ dynamic_dispatch ] : https://doc.rust-lang.org/book/second-edition/ ch17-02-trait-objects.html#trait-objects-perform-dynamic-dispatch
71+ [ dynamic_dispatch ] : https://doc.rust-lang.org/book/ch17-02-trait-objects.html#trait-objects-perform-dynamic-dispatch
7272[ error ] : https://doc.rust-lang.org/std/error/trait.Error.html
7373[ from ] : https://doc.rust-lang.org/std/convert/trait.From.html
Original file line number Diff line number Diff line change @@ -40,4 +40,4 @@ fn main() {
4040
4141[ elision] [ elision ]
4242
43- [ elision ] : https://doc.rust-lang.org/book/second-edition/ ch10-03-lifetime-syntax.html#lifetime-elision
43+ [ elision ] : https://doc.rust-lang.org/book/ch10-03-lifetime-syntax.html#lifetime-elision
Original file line number Diff line number Diff line change @@ -143,10 +143,10 @@ defined by a static constant at the beginning of the program.
143143[ thread ] : std_misc/threads.html
144144[ vectors ] : std/vec.html
145145[ iterators ] : trait/iter.html
146- [ destructuring ] : https://doc.rust-lang.org/book/second-edition/ ch18-03-pattern-syntax.html#destructuring-to-break-apart-values
146+ [ destructuring ] : https://doc.rust-lang.org/book/ch18-03-pattern-syntax.html#destructuring-to-break-apart-values
147147[ closures ] : fn/closures.html
148148[ move ] : scope/move.html
149- [ move_closure ] : https://doc.rust-lang.org/book/second-edition/ ch13-01-closures.html#closures-can-capture-their-environment
149+ [ move_closure ] : https://doc.rust-lang.org/book/ch13-01-closures.html#closures-can-capture-their-environment
150150[ turbofish ] : https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect
151151[ unwrap ] : error/option_unwrap.html
152152[ enumerate ] : https://doc.rust-lang.org/book/loops.html#enumerate
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ Also Rust has support for specifying additional dependencies for tests:
2222[ doc ] : testing/doc_testing.html
2323[ integration ] : testing/integration_testing.html
2424[ dev-dependencies ] : testing/dev_dependencies.html
25- [ doc-testing ] : https://doc.rust-lang.org/book/second-edition/ ch11-00-testing.html
25+ [ doc-testing ] : https://doc.rust-lang.org/book/ch11-00-testing.html
2626[ doc-nursery ] : https://rust-lang-nursery.github.io/api-guidelines/documentation.html
Original file line number Diff line number Diff line change @@ -58,4 +58,4 @@ fn main() {
5858
5959[ add ] : https://doc.rust-lang.org/core/ops/trait.Add.html
6060[ ops ] : https://doc.rust-lang.org/core/ops/
61- [ syntax ] :https://doc.rust-lang.org/book/second-edition/ appendix-02-operators.html
61+ [ syntax ] :https://doc.rust-lang.org/book/appendix-02-operators.html
Original file line number Diff line number Diff line change @@ -57,5 +57,5 @@ is of the correct type. If these invariants aren't upheld then the program's
5757behaviour is undefined and there is no knowing what will happen.
5858
5959
60- [ unsafe ] : https://doc.rust-lang.org/book/second-edition/ ch19-01-unsafe-rust.html
60+ [ unsafe ] : https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html
6161[ `std::slice::from_raw_parts` ] : https://doc.rust-lang.org/std/slice/fn.from_raw_parts.html
You can’t perform that action at this time.
0 commit comments