Skip to content

Commit

Permalink
Rollup merge of #48397 - ordovicia:pow_doc, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Take 2^5 as examples in document of pow()

Fixes #48396 by taking 2^5 as examples.
  • Loading branch information
GuillaumeGomez authored Feb 21, 2018
2 parents c118d37 + 7e51e7d commit 24c17cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ Basic usage:
```
", $Feature, "let x: ", stringify!($SelfT), " = 2; // or any other integer type
assert_eq!(x.pow(4), 16);",
assert_eq!(x.pow(5), 32);",
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down Expand Up @@ -2364,7 +2364,7 @@ assert_eq!(0x10", stringify!($SelfT), ".overflowing_shr(132), (0x1, true));", $E
Basic usage:
```
", $Feature, "assert_eq!(2", stringify!($SelfT), ".pow(4), 16);", $EndFeature, "
", $Feature, "assert_eq!(2", stringify!($SelfT), ".pow(5), 32);", $EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
Expand Down

0 comments on commit 24c17cb

Please sign in to comment.