From 597c06544da67af89c544bf3bbea4a4957eedb0d Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sat, 8 Sep 2018 11:35:02 -0700 Subject: [PATCH] Document .0 to unpack the value from Wrapping --- src/libcore/num/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 5ae984a4b155b..12da0455cc56b 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 /// /// ```