Skip to content

Commit 0929e07

Browse files
authored
Fix some typos (#330)
Signed-off-by: Alexander Seiler <[email protected]>
1 parent 8e91956 commit 0929e07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/internals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ julia> axes(axes(z, 1), 1)
165165
Base.OneTo(4)
166166
```
167167

168-
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.
168+
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.
169169

170170
```jldoctest zerobasedrange
171171
julia> LinearIndices(z)

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ end
276276
@test_throws ArgumentError r[true]
277277
@test_throws ArgumentError r[false]
278278
end
279-
@testset "indexing wtih a Bool UnitRange" begin
279+
@testset "indexing with a Bool UnitRange" begin
280280
r = IdOffsetRange(1:0)
281281

282282
@test r[true:false] == 1:0
@@ -330,7 +330,7 @@ end
330330
r2 = IdOffsetRange(false:true)
331331
testlogicalindexing(r, r2)
332332
end
333-
@testset "indexing wtih a Bool StepRange" begin
333+
@testset "indexing with a Bool StepRange" begin
334334
r = IdOffsetRange(1:0)
335335

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

0 commit comments

Comments
 (0)