Skip to content

Commit 5fcb418

Browse files
authored
Fix some typos (#635)
Signed-off-by: Alexander Seiler <[email protected]>
1 parent d032414 commit 5fcb418

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pkgdefaults.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ rad2deg(r::Quantity{T, NoDims, typeof(rad)}) where {T} = rad2deg(ustrip(rad, r))
202202
\nSee also: [`Unitful.s`](@ref)."
203203
@unit Bq "Bq" Becquerel 1/s true true
204204
" Unitful.Gy
205-
\nThe gray, an SI unit of ionizing radiation dose, defined as the absorbtion of 1 J per kg of matter.
205+
\nThe gray, an SI unit of ionizing radiation dose, defined as the absorption of 1 J per kg of matter.
206206
\nDimension: 𝐋^2 𝐓^-2.
207207
\nSee also: [`Unitful.lm`](@ref), [`Unitful.m`](@ref)."
208208
@unit Gy "Gy" Gray 1J/kg true true

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Unitful.uconvert(U::Unitful.Units, q::QQQ) = uconvert(U, Quantity(q.val, cm))
323323
@testset "> Unit preferences" begin
324324
# Should warn on possible redundant units issue (ms and s)
325325
@test_logs (:warn, r"^Preferred units contain complex units") Unitful.preferunits(C/ms)
326-
# Test for wacky prefered units functionality
326+
# Test for wacky preferred units functionality
327327
Unitful.preferunits(C/s)
328328
@test @inferred(upreferred(V/m)) == kg*m*C^-1*s^-2
329329
@test dimension(upreferred(V/m)) == dimension(V/m)
@@ -611,7 +611,7 @@ Base.:*(x::MatNum, y::MatNum) = MatNum(x.mat*y.mat)
611611
@test @inferred((NaN*kg)*false) === 0.0kg # `false` acts as "strong zero"
612612
@test @inferred(false*(-Inf*kg)) === -0.0kg # `false` acts as "strong zero"
613613
@test typeof(one(eltype([1.0s, 1kg]))) <: Float64 # issue 159, multiplicative identity
614-
# Multiplicaton can be non-commutative
614+
# Multiplication can be non-commutative
615615
@test Quantity(MatNum([1 2; 3 4]), m) * MatNum([5 6; 7 8]) == Quantity(MatNum([19 22; 43 50]), m)
616616
@test MatNum([5 6; 7 8]) * Quantity(MatNum([1 2; 3 4]), m) == Quantity(MatNum([23 34; 31 46]), m)
617617
end

0 commit comments

Comments
 (0)