File tree 8 files changed +9
-9
lines changed
error/multiple_error_types
8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
As we know testing is integral to any piece of software! Rust has first-class
4
4
support 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
6
6
TRPL).
7
7
8
8
From 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).
28
28
For a more rigorous discussion of error handling, refer to the error
29
29
handling section in the [ official book] [ book ] .
30
30
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() {
68
68
[ Dynamic dispatch] [ dynamic_dispatch ] and [ ` Error ` trait] [ error ]
69
69
70
70
[ 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
72
72
[ error ] : https://doc.rust-lang.org/std/error/trait.Error.html
73
73
[ 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() {
40
40
41
41
[ elision] [ elision ]
42
42
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.
143
143
[ thread ] : std_misc/threads.html
144
144
[ vectors ] : std/vec.html
145
145
[ 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
147
147
[ closures ] : fn/closures.html
148
148
[ 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
150
150
[ turbofish ] : https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect
151
151
[ unwrap ] : error/option_unwrap.html
152
152
[ 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:
22
22
[ doc ] : testing/doc_testing.html
23
23
[ integration ] : testing/integration_testing.html
24
24
[ 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
26
26
[ 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() {
58
58
59
59
[ add ] : https://doc.rust-lang.org/core/ops/trait.Add.html
60
60
[ 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
57
57
behaviour is undefined and there is no knowing what will happen.
58
58
59
59
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
61
61
[ `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