File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
250250dimension 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
253253Examples:
254254
@@ -262,15 +262,15 @@ julia> circumference_of_square((1//2)km) # also works
262262
263263See 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
272272dimension 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
275275Examples:
276276
You can’t perform that action at this time.
0 commit comments