Skip to content

Commit 605948f

Browse files
authored
Rollup merge of rust-lang#53703 - sourcefrog:doc-wrapping, r=frewsxcv
Document .0 to unpack integer from Wrapping
2 parents 6b55f04 + 597c065 commit 605948f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/num/mod.rs

Lines changed: 3 additions & 0 deletions
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)