Skip to content

Commit fc21f33

Browse files
Fixed some typos.
1 parent 3ade426 commit fc21f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/convert.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ pub trait AsRef<T: ?Sized> {
177177
///
178178
/// Using `AsMut` as trait bound for a generic function we can accept all mutable references
179179
/// that can be converted to type `&mut T`. Because [`Box<T>`] implements `AsMut<T>` we can
180-
/// write a function `add_one`that takes all arguments that can be converted to `&mut u64`.
181-
/// Because [`Box<T>`] implements `AsMut<T>` `add_one` accepts arguments of type
180+
/// write a function `add_one` that takes all arguments that can be converted to `&mut u64`.
181+
/// Because [`Box<T>`] implements `AsMut<T>`, `add_one` accepts arguments of type
182182
/// `&mut Box<u64>` as well:
183183
///
184184
/// ```

0 commit comments

Comments
 (0)