Skip to content

Commit ba3bba8

Browse files
committed
added quotes in unit_testing
1 parent 4bfa227 commit ba3bba8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/testing/unit_testing.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ failures:
7070
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
7171
```
7272

73-
## Tests and ?
74-
None of the previous unit test examples had a return type. But in Rust 2018, your unit tests can return Result<()>, which lets you use `?` in them! This can make them much more concise.
73+
## Tests and `?`
74+
None of the previous unit test examples had a return type. But in Rust 2018,
75+
your unit tests can return `Result<()>`, which lets you use `?` in them! This
76+
can make them much more concise.
7577

7678
```rust,editable
7779
fn sqrt(number: f64) -> Result<f64, String> {
@@ -95,7 +97,7 @@ mod tests {
9597
}
9698
```
9799

98-
See [The Edition Guide][editionguide] for more details.
100+
See ["The Edition Guide"][editionguide] for more details.
99101

100102
## Testing panics
101103

0 commit comments

Comments
 (0)