Skip to content

Commit

Permalink
Fix typo in Base.setindex documentation (#51446)
Browse files Browse the repository at this point in the history
... 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...)
  • Loading branch information
Sleort authored Sep 25, 2023
1 parent 0287a00 commit 13d3efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ get(f::Callable, t::Tuple, i::Integer) = i in 1:length(t) ? getindex(t, i) : f()
# returns new tuple; N.B.: becomes no-op if `i` is out-of-bounds

"""
setindex(c::Tuple, v, i::Integer)
setindex(t::Tuple, v, i::Integer)
Creates a new tuple similar to `x` with the value at index `i` set to `v`.
Creates a new tuple similar to `t` with the value at index `i` set to `v`.
Throws a `BoundsError` when out of bounds.
# Examples
Expand Down

0 comments on commit 13d3efb

Please sign in to comment.