mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-06 01:38:35 +00:00
Clarify what Cell::replace returns
This commit is contained in:
@@ -374,7 +374,7 @@ impl<T> Cell<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Replaces the contained value, and returns it.
|
||||
/// Replaces the contained value with `val`, and returns the old contained value.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user