diff options
| author | kennytm <kennytm@gmail.com> | 2018-09-12 12:17:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-12 12:17:24 +0800 |
| commit | 605948f92e3aeb62c9f1dc2d9bef76f3e28aafbb (patch) | |
| tree | b008db5429ada86b10415c69edaac6e868541b41 /src | |
| parent | 6b55f04725b3645509b330e49f32a3ab943c9fd9 (diff) | |
| parent | 597c06544da67af89c544bf3bbea4a4957eedb0d (diff) | |
| download | rust-605948f92e3aeb62c9f1dc2d9bef76f3e28aafbb.tar.gz rust-605948f92e3aeb62c9f1dc2d9bef76f3e28aafbb.zip | |
Rollup merge of #53703 - sourcefrog:doc-wrapping, r=frewsxcv
Document .0 to unpack integer from Wrapping
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 5ae984a4b15..12da0455cc5 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -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 /// /// ``` |
