Skip to content

Commit ff939dd

Browse files
committed
Various minor edits for clarity
1 parent b20ef16 commit ff939dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/error/multiple_error_types/reenter_question_mark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here, we rewrite the previous example using `?`. As a result, the
2626
use std::error;
2727
use std::fmt;
2828
29-
// Change the alias to `Box<dyn error::Error>`.
29+
// Change the alias to use `Box<dyn error::Error>`.
3030
type Result<T> = std::result::Result<T, Box<dyn error::Error>>;
3131
3232
#[derive(Debug)]

src/macros/dsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ an expression and have the output printed to console.
1212
macro_rules! calculate {
1313
(eval $e:expr) => {
1414
{
15-
let val: usize = $e; // Force types to be integers
15+
let val: usize = $e; // Force types to be unsigned integers
1616
println!("{} = {}", stringify!{$e}, val);
1717
}
1818
};

src/trait/disambiguating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Disambiguating overlapping traits
22

33
A type can implement many different traits. What if two traits both require
4-
the same name? For example, many traits might have a method named `get()`.
5-
They might even have different return types!
4+
the same name for a function? For example, many traits might have a method
5+
named `get()`. They might even have different return types!
66

77
Good news: because each trait implementation gets its own `impl` block, it's
88
clear which trait's `get` method you're implementing.

0 commit comments

Comments
 (0)