Skip to content

Commit

Permalink
Fix some typos (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
  • Loading branch information
goggle authored Mar 31, 2023
1 parent 8e91956 commit 0929e07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ julia> axes(axes(z, 1), 1)
Base.OneTo(4)
```

This will lead to complications in certain functions --- for example `LinearIndices` --- that tend to implictly assume idempotent indexing. In this case the `LinearIndices` of `z` will not match its axis.
This will lead to complications in certain functions --- for example `LinearIndices` --- that tends to implicitly assume idempotent indexing. In this case the `LinearIndices` of `z` will not match its axis.

```jldoctest zerobasedrange
julia> LinearIndices(z)
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ end
@test_throws ArgumentError r[true]
@test_throws ArgumentError r[false]
end
@testset "indexing wtih a Bool UnitRange" begin
@testset "indexing with a Bool UnitRange" begin
r = IdOffsetRange(1:0)

@test r[true:false] == 1:0
Expand Down Expand Up @@ -330,7 +330,7 @@ end
r2 = IdOffsetRange(false:true)
testlogicalindexing(r, r2)
end
@testset "indexing wtih a Bool StepRange" begin
@testset "indexing with a Bool StepRange" begin
r = IdOffsetRange(1:0)

@test r[true:true:false] == 1:1:0
Expand Down Expand Up @@ -551,7 +551,7 @@ Base.Int(a::WeirdInteger) = a
ao2 = OffsetArray(ao, (-1,))
@test axes(ao2, 1) == typemin(Int) .+ (0:length(v)-1)
@test_throws OverflowError OffsetArray{Float64, 1, typeof(ao)}(ao, (-2, )) # inner Constructor
@test_throws OverflowError OffsetArray(ao, (-2, )) # convinient constructor accumulate offsets
@test_throws OverflowError OffsetArray(ao, (-2, )) # convenient constructor accumulate offsets
@test_throws OverflowError OffsetVector(1:0, typemax(Int))
@test_throws OverflowError OffsetVector(OffsetVector(1:0, 0), typemax(Int))
@test_throws OverflowError OffsetArray(zeros(Int, typemax(Int):typemax(Int)), 2)
Expand Down

0 comments on commit 0929e07

Please sign in to comment.