]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #70782 - faern:use-assoc-float-consts, r=dtolnay
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 5 Apr 2020 22:53:47 +0000 (00:53 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2020 22:53:47 +0000 (00:53 +0200)
Stop importing the float modules in documentation

Follow up to #69860. I realized I had not searched for and fixed this for the float values. So with this PR they also use the associated constants instead of the module level constants.

For the documentation where it also was using the `consts` submodule I opted to change it to import that directly. This becomes more in line with how other docs that use the `consts` submodule looks. And it also makes it so there are not two `f32` or `f64` things in the current namespace (both the module and the primitive type) and then hopefully confusing documentation readers less.

r? @dtolnay


Trivial merge