Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins committed Jul 22, 2019
1 parent 02d9284 commit 7b78b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/refpointer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ getindex(b::RefArray) = b.x[b.i]
getindex(b::RefArray, ::CartesianIndex{0}) = getindex(b)

setindex!(b::RefArray, x) = (b.x[b.i] = x; b)
setindex!(b::RefArray, x, , ::CartesianIndex{0}) = setindex!(b, x)
setindex!(b::RefArray, x, ::CartesianIndex{0}) = setindex!(b, x)

###
2 changes: 1 addition & 1 deletion base/refvalue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ getindex(b::RefValue) = b.x
getindex(b::RefValue, ::CartesianIndex{0}) = getindex(b)

setindex!(b::RefValue, x) = (b.x = x; b)
setindex!(b::RefValue, x, , ::CartesianIndex{0}) = setindex!(b, x)
setindex!(b::RefValue, x, ::CartesianIndex{0}) = setindex!(b, x)

0 comments on commit 7b78b6f

Please sign in to comment.