Skip to content

Commit 9fcbaa4

Browse files
committed
Fix broken show-const-contents test
1 parent 6ce16cf commit 9fcbaa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/rustdoc/show-const-contents.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ pub struct MyTypeWithStr(&'static str);
4747
// @!has show_const_contents/constant.MY_TYPE_WITH_STR.html '; //'
4848
pub const MY_TYPE_WITH_STR: MyTypeWithStr = MyTypeWithStr("show this");
4949

50-
// @has show_const_contents/constant.EPSILON.html '1.1920929e-7f32;'
51-
// @!has show_const_contents/constant.EPSILON.html '; //'
52-
pub use std::f32::EPSILON;
50+
// @has show_const_contents/constant.PI.html '= 3.14159265358979323846264338327950288f32;'
51+
// @has show_const_contents/constant.PI.html '; // 3.14159274f32'
52+
pub use std::f32::consts::PI;
5353

5454
// @has show_const_contents/constant.MAX.html '= i32::max_value(); // 2_147_483_647i32'
5555
pub use std::i32::MAX;

0 commit comments

Comments
 (0)