diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-05-31 13:34:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 13:34:08 +0200 |
| commit | e32386d70ed2e5ba103b490c2aac56385bc88405 (patch) | |
| tree | aad668265a9165157a45ef4abc21e0c8a0d1951a | |
| parent | e36b90752ceef81c6fdff3b6cac36878cf29ee6f (diff) | |
| parent | fc21f33d4db9e2f0317c277851c05954e476d1ac (diff) | |
| download | rust-e32386d70ed2e5ba103b490c2aac56385bc88405.tar.gz rust-e32386d70ed2e5ba103b490c2aac56385bc88405.zip | |
Rollup merge of #61382 - OptimisticPeach:patch-1, r=Centril
Fixed a typo in core::convert::AsMut Just missing a space, and added a comma to make more idiomatic.
| -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: /// /// ``` |
