Skip to content

Commit 13d3efb

Browse files
authored
Fix typo in Base.setindex documentation (#51446)
... I also used `t` instead of `x`, since that seems to be more prevalent when talking about tuples. (I could be wrong about that, though...)
1 parent 0287a00 commit 13d3efb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/tuple.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ get(f::Callable, t::Tuple, i::Integer) = i in 1:length(t) ? getindex(t, i) : f()
4242
# returns new tuple; N.B.: becomes no-op if `i` is out-of-bounds
4343

4444
"""
45-
setindex(c::Tuple, v, i::Integer)
45+
setindex(t::Tuple, v, i::Integer)
4646
47-
Creates a new tuple similar to `x` with the value at index `i` set to `v`.
47+
Creates a new tuple similar to `t` with the value at index `i` set to `v`.
4848
Throws a `BoundsError` when out of bounds.
4949
5050
# Examples

0 commit comments

Comments
 (0)