Skip to content

Commit

Permalink
Rollup merge of rust-lang#61382 - OptimisticPeach:patch-1, r=Centril
Browse files Browse the repository at this point in the history
Fixed a typo in core::convert::AsMut

Just missing a space, and added a comma to make more idiomatic.
  • Loading branch information
pietroalbini authored May 31, 2019
2 parents e36b907 + fc21f33 commit e32386d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
///
/// ```
Expand Down

0 comments on commit e32386d

Please sign in to comment.