Skip to content

Commit ab3959d

Browse files
rfritzMasonProtter
andauthored
Switch key=>value, key=>value to key1=>value1, key2=>value2 for clarity
Co-authored-by: Mason Protter <mason.protter@icloud.com>
1 parent 09c8a93 commit ab3959d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

base/dict.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,18 +785,17 @@ list, used for small mappings with a few entries where the overhead
785785
of accessing a hash table is higher than that of a linear search of a
786786
linked list.
787787
788-
Base.ImmutableDict(key=>value, key=>value, ...)
789788
790-
`Base.ImmutableDict(key=>value, key=>value, ...)` constructs a linked
789+
`Base.ImmutableDict(key1=>value1, key2=>value2, ...)` constructs a linked
791790
list; the first argument sets the type of the keys and values. Keys
792791
are compared with `isequal`.
793792
794793
`Base.ImmutableDict{K,V}()` constructs an empty list with keys of type
795794
K and values of type V.
796795
797-
Base.ImmutableDict(imdict, key=>value, key=>value, ...)
796+
Base.ImmutableDict(imdict, key1=>value1, key2=>value2, ...)
798797
799-
`Base.ImmutableDict(imdict, key=>value, key=>value, ...)` constructs a
798+
`Base.ImmutableDict(imdict, key1=>value1, key2=>value2, ...)` constructs a
800799
new `ImmutableDict` from an existing `ImmutableDict` and additional KV
801800
pairs, returning a new list. The original `ImmutableDict` becomes the
802801
tail of the new list.

0 commit comments

Comments
 (0)