Skip to content

Commit 1bda1ff

Browse files
committed
Removing unnecessary pub from a test function
1 parent 8f091ef commit 1bda1ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ mod tests {
716716
}
717717

718718
#[test]
719-
pub fn test_abs() {
719+
fn test_abs() {
720720
assert_eq!(INFINITY.abs(), INFINITY);
721721
assert_eq!(1f32.abs(), 1f32);
722722
assert_eq!(0f32.abs(), 0f32);

src/libstd/num/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ mod tests {
724724
}
725725

726726
#[test]
727-
pub fn test_abs() {
727+
fn test_abs() {
728728
assert_eq!(INFINITY.abs(), INFINITY);
729729
assert_eq!(1f64.abs(), 1f64);
730730
assert_eq!(0f64.abs(), 0f64);

0 commit comments

Comments
 (0)