Skip to content

Commit d4d34b9

Browse files
authored
chore: fix some comments (#53861)
Signed-off-by: crazeteam <[email protected]>
1 parent fc2d3af commit d4d34b9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

base/sort.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ no scratch space is present.
528528
529529
A returned scratch space will be a `Vector{T}` where `T` is usually the eltype of `v`. There
530530
are some exceptions, for example if `eltype(v) == Union{Missing, T}` then the scratch space
531-
may be be a `Vector{T}` due to `MissingOptimization` changing the eltype of `v` to `T`.
531+
may be a `Vector{T}` due to `MissingOptimization` changing the eltype of `v` to `T`.
532532
533533
`t` is an appropriate scratch space for the algorithm at hand, to be accessed as
534534
`t[i + offset]`. `t` is used for an algorithm to pass a scratch space back to itself in

stdlib/LinearAlgebra/src/triangular.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ end
26632663
Bᵢⱼ⁽¹⁾ = M_Bᵢⱼ⁽¹⁾[1:s₁, 1:s₂]
26642664
# Compute Bᵢⱼ⁽⁰⁾ and Bᵢⱼ⁽¹⁾
26652665
mul!(Bᵢⱼ⁽⁰⁾, A[i₁:i₂,k₁:k₂], A[k₁:k₂,j₁:j₂])
2666-
# Retreive Rᵢ,ᵢ₊ₖ as A[i+k,i]'
2666+
# Retrieve Rᵢ,ᵢ₊ₖ as A[i+k,i]'
26672667
mul!(Bᵢⱼ⁽¹⁾, A[i₁:i₂,k₁:k₂], A[j₁:j₂,k₁:k₂]')
26682668
# Solve Uᵢ,ᵢ₊ₖ using Reference [1, (4.10)]
26692669
kron!(L₀, Δ[1:s₂,1:s₂], S[1:s₁,i₁:i₂])

stdlib/REPL/test/repl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fake_repl() do stdin_write, stdout_read, repl
114114
Base.wait(repltask)
115115
end
116116

117-
# These are integration tests. If you want to unit test test e.g. completion, or
117+
# These are integration tests. If you want to unit test e.g. completion, or
118118
# exact LineEdit behavior, put them in the appropriate test files.
119119
# Furthermore since we are emulating an entire terminal, there may be control characters
120120
# in the mix. If verification needs to be done, keep it to the bare minimum. Basically

stdlib/Test/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ let fails = @testset NoThrowTestSet begin
162162
@test_throws "A test" error("a test")
163163
@test_throws r"sqrt\([Cc]omplx" sqrt(-1)
164164
@test_throws str->occursin("a T", str) error("a test")
165-
@test_throws ["BoundsError", "aquire", "1-element", "at index [2]"] [1][2]
165+
@test_throws ["BoundsError", "acquire", "1-element", "at index [2]"] [1][2]
166166
end
167167
for fail in fails
168168
@test fail isa Test.Fail
@@ -294,7 +294,7 @@ let fails = @testset NoThrowTestSet begin
294294
end
295295

296296
let str = sprint(show, fails[26])
297-
@test occursin("Expected: [\"BoundsError\", \"aquire\", \"1-element\", \"at index [2]\"]", str)
297+
@test occursin("Expected: [\"BoundsError\", \"acquire\", \"1-element\", \"at index [2]\"]", str)
298298
@test occursin(r"Message: \"BoundsError.* 1-element.*at index \[2\]", str)
299299
end
300300

0 commit comments

Comments
 (0)