diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/convert.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index b3ff447be5e..a2796ad0cf0 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -177,8 +177,8 @@ pub trait AsRef<T: ?Sized> { /// /// Using `AsMut` as trait bound for a generic function we can accept all mutable references /// that can be converted to type `&mut T`. Because [`Box<T>`] implements `AsMut<T>` we can -/// write a function `add_one`that takes all arguments that can be converted to `&mut u64`. -/// Because [`Box<T>`] implements `AsMut<T>` `add_one` accepts arguments of type +/// write a function `add_one` that takes all arguments that can be converted to `&mut u64`. +/// Because [`Box<T>`] implements `AsMut<T>`, `add_one` accepts arguments of type /// `&mut Box<u64>` as well: /// /// ``` |
