]> git.lizzy.rs Git - rust.git/commit
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)
commit269eeea15d1a754bd26051618dab8e787ab11aa3
tree0403aabc590f2326a1da575acf39ce3dda662dd6
parent618ba73b3150ad19979aad96f20506953544122e
parent28c9231a91b9c4708be2c0ff89204d707b53cc06
Rollup merge of #70782 - faern:use-assoc-float-consts, r=dtolnay

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