Skip to content

Commit f80f31c

Browse files
committed
comments
1 parent d56d0c8 commit f80f31c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/set.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ end
520520

521521
"""
522522
allequal(itr) -> Bool
523-
allunique(f, xs)
523+
allequal(f, xs)
524524
525525
Return `true` if all values from `itr` are equal when compared with [`isequal`](@ref).
526526
The second form takes `itr = (f(x) for x in xs)`.

test/sets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ end
591591
@test !allunique(sin, [1,2,3,1])
592592
@test allunique(sin, (1, 2, pi, im)) # eltype Any
593593
@test allunique(abs2, 1:100)
594-
@test !allunique(abs2, repeat(1:100, 2))
594+
@test !allunique(abs, -10:10)
595595
@test allunique(abs2, Vector{Any}(1:100))
596596
# These cases don't call the function at all:
597597
@test allunique(error, [])

0 commit comments

Comments
 (0)