Skip to content

Commit 597c065

Browse files
committed
Document .0 to unpack the value from Wrapping
1 parent b24330f commit 597c065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/num/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ nonzero_integers! {
122122
/// all standard arithmetic operations on the underlying value are
123123
/// intended to have wrapping semantics.
124124
///
125+
/// The underlying value can be retrieved through the `.0` index of the
126+
/// `Wrapping` tuple.
127+
///
125128
/// # Examples
126129
///
127130
/// ```

0 commit comments

Comments
 (0)