Skip to content

Commit 1297212

Browse files
committed
Fix some typos.
1 parent a746d5c commit 1297212

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utils.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ end
246246
"""
247247
WithDims(q::Quantity)
248248
WithDims(u::Units)
249-
Returns a type of [`Unitful.Quantity`](@ref) with the dimensions contrained to the
249+
Returns a subtype of [`Unitful.Quantity`](@ref) with the dimensions constrained to the
250250
dimension of `q` or `u`.
251-
Useful to build unitful interfaces that don't contrain the numeric type of the specific unit.
251+
Useful to build unitful interfaces that don't constrained the numeric type of the specific unit.
252252
253253
Examples:
254254
@@ -262,15 +262,15 @@ julia> circumference_of_square((1//2)km) # also works
262262
263263
See also [`Unitful.WithUnits`](@ref).
264264
"""
265-
WithDims(q::Quantity) = Quantity{T, dimension(q), U} where {T<:Real, U<:Unitlike}
266-
WithDims(u::Units) = Quantity{T, dimension(u), U} where {T<:Real, U<:Unitlike}
265+
WithDims(q::Quantity) = Quantity{T, dimension(q), U} where {T<:Real, U<:Unitlike}
266+
WithDims(u::Units) = Quantity{T, dimension(u), U} where {T<:Real, U<:Unitlike}
267267

268268
"""
269269
WithUnits(q::Quantity)
270270
WithUnits(u::Units)
271-
Returns a type of [`Unitful.Quantity`](@ref) with the dimensions and units contrained to the
271+
Returns a subtype of [`Unitful.Quantity`](@ref) with the dimensions and units constrained to the
272272
dimension and units of `q` or `u`.
273-
Useful to build unitful interfaces that don't contrain the numeric type.
273+
Useful to build unitful interfaces that don't constrained the numeric type.
274274
275275
Examples:
276276

0 commit comments

Comments
 (0)