Skip to content

Commit 21961ec

Browse files
committed
change docstring to say itr
1 parent 4c57f88 commit 21961ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

base/set.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,15 @@ end
425425

426426
"""
427427
allunique(itr) -> Bool
428-
allunique(f, xs)
428+
allunique(f, itr) -> Bool
429429
430430
Return `true` if all values from `itr` are distinct when compared with [`isequal`](@ref).
431-
The second form takes `itr = (f(x) for x in xs)`.
431+
Or if all `f(x) for x in itr` are distinct, for `allunique(f, itr)`.
432432
433433
See also: [`unique`](@ref), [`issorted`](@ref), [`allequal`](@ref).
434434
435435
!!! compat "Julia 1.10"
436-
The method `allunique(f, xs)` requires at least Julia 1.10.
436+
The method `allunique(f, itr)` requires at least Julia 1.10.
437437
438438
# Examples
439439
```jldoctest
@@ -520,18 +520,18 @@ end
520520

521521
"""
522522
allequal(itr) -> Bool
523-
allequal(f, xs)
523+
allequal(f, itr) -> Bool
524524
525525
Return `true` if all values from `itr` are equal when compared with [`isequal`](@ref).
526-
The second form takes `itr = (f(x) for x in xs)`.
526+
Or if all `f(x) for x in itr` are equal, for `allequal(f, itr)`.
527527
528528
See also: [`unique`](@ref), [`allunique`](@ref).
529529
530530
!!! compat "Julia 1.8"
531531
The `allequal` function requires at least Julia 1.8.
532532
533533
!!! compat "Julia 1.10"
534-
The method `allequal(f, xs)` requires at least Julia 1.10.
534+
The method `allequal(f, itr)` requires at least Julia 1.10.
535535
536536
# Examples
537537
```jldoctest

0 commit comments

Comments
 (0)