Skip to content

Commit

Permalink
Fix some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeoV committed Dec 4, 2023
1 parent a746d5c commit 1297212
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ end
"""
WithDims(q::Quantity)
WithDims(u::Units)
Returns a type of [`Unitful.Quantity`](@ref) with the dimensions contrained to the
Returns a subtype of [`Unitful.Quantity`](@ref) with the dimensions constrained to the
dimension of `q` or `u`.
Useful to build unitful interfaces that don't contrain the numeric type of the specific unit.
Useful to build unitful interfaces that don't constrained the numeric type of the specific unit.
Examples:
Expand All @@ -262,15 +262,15 @@ julia> circumference_of_square((1//2)km) # also works
See also [`Unitful.WithUnits`](@ref).
"""
WithDims(q::Quantity) = Quantity{T, dimension(q), U} where {T<:Real, U<:Unitlike}
WithDims(u::Units) = Quantity{T, dimension(u), U} where {T<:Real, U<:Unitlike}
WithDims(q::Quantity) = Quantity{T, dimension(q), U} where {T<:Real, U<:Unitlike}
WithDims(u::Units) = Quantity{T, dimension(u), U} where {T<:Real, U<:Unitlike}

"""
WithUnits(q::Quantity)
WithUnits(u::Units)
Returns a type of [`Unitful.Quantity`](@ref) with the dimensions and units contrained to the
Returns a subtype of [`Unitful.Quantity`](@ref) with the dimensions and units constrained to the
dimension and units of `q` or `u`.
Useful to build unitful interfaces that don't contrain the numeric type.
Useful to build unitful interfaces that don't constrained the numeric type.
Examples:
Expand Down

0 comments on commit 1297212

Please sign in to comment.