diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-20 01:01:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-20 01:01:44 +0200 |
| commit | 614ffe56c6a0a3bf0dc649388d5cb7d6a3f0d0c1 (patch) | |
| tree | 1d2bc160f779261d0bdd103f53c9d3178645c31e /src | |
| parent | 787d49e4cbfe54162e79b5e205f18b61f4320e5c (diff) | |
| parent | a759565763c51ed856937d3a8b520d26e5270ba2 (diff) | |
| download | rust-614ffe56c6a0a3bf0dc649388d5cb7d6a3f0d0c1.tar.gz rust-614ffe56c6a0a3bf0dc649388d5cb7d6a3f0d0c1.zip | |
Rollup merge of #60962 - VeryTastyTomato:patch-1, r=jonas-schievink
Fix data types indication Fix the data types indication in basic examples of the Trait std::fmt::LowerExp and std::fmt::UpperExp. Since there aren’t any type annotation on the let statement using the number 42.0, they are of type f64 according to The Book: https://doc.rust-lang.org/book/ch03-02-data-types.html#floating-point-types
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 43c1a3b7767..2f6d745d146 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -886,7 +886,7 @@ pub trait Pointer { /// /// # Examples /// -/// Basic usage with `i32`: +/// Basic usage with `f64`: /// /// ``` /// let x = 42.0; // 42.0 is '4.2e1' in scientific notation @@ -929,7 +929,7 @@ pub trait LowerExp { /// /// # Examples /// -/// Basic usage with `f32`: +/// Basic usage with `f64`: /// /// ``` /// let x = 42.0; // 42.0 is '4.2E1' in scientific notation |
