Skip to content

Commit

Permalink
Document .0 to unpack the value from Wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Sep 8, 2018
1 parent b24330f commit 597c065
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/num/mod.rs
Expand Up @@ -122,6 +122,9 @@ nonzero_integers! {
/// all standard arithmetic operations on the underlying value are
/// intended to have wrapping semantics.
///
/// The underlying value can be retrieved through the `.0` index of the
/// `Wrapping` tuple.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit 597c065

Please sign in to comment.