Skip to content

Commit

Permalink
Minor: change take() docs grammar to match other docs
Browse files Browse the repository at this point in the history
Eg. mem::replace()
  • Loading branch information
petertodd committed Jan 3, 2020
1 parent 0a58f58 commit 4a48818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem/mod.rs
Expand Up @@ -557,7 +557,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
}
}

/// Replace `dest` with the default value of `T`, and return the previous `dest` value.
/// Replaces `dest` with the default value of `T`, returning the previous `dest` value.
///
/// # Examples
///
Expand Down

0 comments on commit 4a48818

Please sign in to comment.