Skip to content

Commit

Permalink
Rewrite the documentation for BorrowMut.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Mar 17, 2018
1 parent 5bef034 commit d664b89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libcore/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ pub trait Borrow<Borrowed: ?Sized> {

/// A trait for mutably borrowing data.
///
/// Similar to `Borrow`, but for mutable borrows.
/// As a companion to [`Borrow<T>`] this trait allows a type to borrow as
/// an underlying type by providing a mutable reference. See [`Borrow<T>`]
/// for more information on borrowing as another type.
///
/// [`Borrow<T>`]: trait.Borrow.html
#[stable(feature = "rust1", since = "1.0.0")]
pub trait BorrowMut<Borrowed: ?Sized> : Borrow<Borrowed> {
/// Mutably borrows from an owned value.
Expand Down

0 comments on commit d664b89

Please sign in to comment.