Skip to content

Commit

Permalink
chore: fix some comments (#53861)
Browse files Browse the repository at this point in the history
Signed-off-by: crazeteam <[email protected]>
  • Loading branch information
crazeteam authored Mar 27, 2024
1 parent fc2d3af commit d4d34b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ no scratch space is present.
A returned scratch space will be a `Vector{T}` where `T` is usually the eltype of `v`. There
are some exceptions, for example if `eltype(v) == Union{Missing, T}` then the scratch space
may be be a `Vector{T}` due to `MissingOptimization` changing the eltype of `v` to `T`.
may be a `Vector{T}` due to `MissingOptimization` changing the eltype of `v` to `T`.
`t` is an appropriate scratch space for the algorithm at hand, to be accessed as
`t[i + offset]`. `t` is used for an algorithm to pass a scratch space back to itself in
Expand Down
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/triangular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,7 @@ end
Bᵢⱼ⁽¹⁾ = M_Bᵢⱼ⁽¹⁾[1:s₁, 1:s₂]
# Compute Bᵢⱼ⁽⁰⁾ and Bᵢⱼ⁽¹⁾
mul!(Bᵢⱼ⁽⁰⁾, A[i₁:i₂,k₁:k₂], A[k₁:k₂,j₁:j₂])
# Retreive Rᵢ,ᵢ₊ₖ as A[i+k,i]'
# Retrieve Rᵢ,ᵢ₊ₖ as A[i+k,i]'
mul!(Bᵢⱼ⁽¹⁾, A[i₁:i₂,k₁:k₂], A[j₁:j₂,k₁:k₂]')
# Solve Uᵢ,ᵢ₊ₖ using Reference [1, (4.10)]
kron!(L₀, Δ[1:s₂,1:s₂], S[1:s₁,i₁:i₂])
Expand Down
2 changes: 1 addition & 1 deletion stdlib/REPL/test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fake_repl() do stdin_write, stdout_read, repl
Base.wait(repltask)
end

# These are integration tests. If you want to unit test test e.g. completion, or
# These are integration tests. If you want to unit test e.g. completion, or
# exact LineEdit behavior, put them in the appropriate test files.
# Furthermore since we are emulating an entire terminal, there may be control characters
# in the mix. If verification needs to be done, keep it to the bare minimum. Basically
Expand Down
4 changes: 2 additions & 2 deletions stdlib/Test/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ let fails = @testset NoThrowTestSet begin
@test_throws "A test" error("a test")
@test_throws r"sqrt\([Cc]omplx" sqrt(-1)
@test_throws str->occursin("a T", str) error("a test")
@test_throws ["BoundsError", "aquire", "1-element", "at index [2]"] [1][2]
@test_throws ["BoundsError", "acquire", "1-element", "at index [2]"] [1][2]
end
for fail in fails
@test fail isa Test.Fail
Expand Down Expand Up @@ -294,7 +294,7 @@ let fails = @testset NoThrowTestSet begin
end

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

Expand Down

0 comments on commit d4d34b9

Please sign in to comment.