diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-01-19 01:51:18 +0100 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2020-01-23 20:55:06 +0100 |
| commit | 9fcbaa4158948324f395ff2eb8061abdf6dbc21f (patch) | |
| tree | 3be1d980d30e0a4e93529815878c842af534dfca /src | |
| parent | 6ce16cfa42dcb1acd2c823a1d45269132d372409 (diff) | |
Fix broken show-const-contents test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/rustdoc/show-const-contents.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/rustdoc/show-const-contents.rs b/src/test/rustdoc/show-const-contents.rs index e84f6e52c75..064c026e6a0 100644 --- a/src/test/rustdoc/show-const-contents.rs +++ b/src/test/rustdoc/show-const-contents.rs @@ -47,9 +47,9 @@ pub struct MyTypeWithStr(&'static str); // @!has show_const_contents/constant.MY_TYPE_WITH_STR.html '; //' pub const MY_TYPE_WITH_STR: MyTypeWithStr = MyTypeWithStr("show this"); -// @has show_const_contents/constant.EPSILON.html '1.1920929e-7f32;' -// @!has show_const_contents/constant.EPSILON.html '; //' -pub use std::f32::EPSILON; +// @has show_const_contents/constant.PI.html '= 3.14159265358979323846264338327950288f32;' +// @has show_const_contents/constant.PI.html '; // 3.14159274f32' +pub use std::f32::consts::PI; // @has show_const_contents/constant.MAX.html '= i32::max_value(); // 2_147_483_647i32' pub use std::i32::MAX; |
