diff options
| author | bors <bors@rust-lang.org> | 2013-11-17 22:21:23 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-17 22:21:23 -0800 |
| commit | 8eda5d831591e608b7de2910469a73d1dc02da42 (patch) | |
| tree | 16049786604b183640090936980cb5a7eeb7e3a6 /src/libextra/sort.rs | |
| parent | 727b70d6ae1c1daf36afa6addd8805b87cf31563 (diff) | |
| parent | dab8fec4af85c94b65d7036129f89a7e7bf6cbac (diff) | |
auto merge of #10443 : alexcrichton/rust/meaninless-pub-priv, r=cmr
Closes #10111
Diffstat (limited to 'src/libextra/sort.rs')
| -rw-r--r-- | src/libextra/sort.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/sort.rs b/src/libextra/sort.rs index 2de7c1ba6dc..60c4a75104b 100644 --- a/src/libextra/sort.rs +++ b/src/libextra/sort.rs @@ -846,7 +846,7 @@ mod tests { fn check_sort(v1: &[int], v2: &[int]) { let len = v1.len(); - pub fn le(a: &int, b: &int) -> bool { *a <= *b } + fn le(a: &int, b: &int) -> bool { *a <= *b } let f = le; let v3 = merge_sort::<int>(v1, f); let mut i = 0u; @@ -876,7 +876,7 @@ mod tests { #[test] fn test_merge_sort_mutable() { - pub fn le(a: &int, b: &int) -> bool { *a <= *b } + fn le(a: &int, b: &int) -> bool { *a <= *b } let v1 = ~[3, 2, 1]; let v2 = merge_sort(v1, le); assert_eq!(v2, ~[1, 2, 3]); |
