Skip to content

Commit

Permalink
Fixed @BoundsCheck warning to refer to axes instead of size (JuliaLan…
Browse files Browse the repository at this point in the history
  • Loading branch information
cljord authored Jun 5, 2021
1 parent 1fef6c3 commit 87e08d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ julia> f2()
As noted there, the caller must verify—using information they can access—that
their accesses are valid before using `@inbounds`. For indexing into your
[`AbstractArray`](@ref) subclasses, for example, this involves checking the
indices against its [`size`](@ref). Therefore, `@boundscheck` annotations
indices against its [`axes`](@ref). Therefore, `@boundscheck` annotations
should only be added to a [`getindex`](@ref) or [`setindex!`](@ref)
implementation after you are certain its behavior is correct.
"""
Expand Down

0 comments on commit 87e08d9

Please sign in to comment.