Skip to content

Commit

Permalink
Apply suggested documentation change
Browse files Browse the repository at this point in the history
Signed-off-by: David Ross <David.Ross@wdc.com>
  • Loading branch information
David Ross authored and David Ross committed Aug 17, 2020
1 parent 4eb3414 commit 162efed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/tock-cells/src/take_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<'a, T: ?Sized> TakeCell<'a, T> {
/// as the reference to this does.
///
/// This escapes the "take" aspect of TakeCell in a way which is guaranteed
/// safe due to the difference in lifetimes.
/// safe due to the returned reference sharing the lifetime of `&mut self`.
pub fn get_mut(&mut self) -> Option<&mut T> {
self.val.get_mut().as_mut().map(|v| &mut **v)
}
Expand Down

0 comments on commit 162efed

Please sign in to comment.