Skip to content

Commit

Permalink
Fix typo in method signature (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
sostock authored Jul 30, 2023
1 parent bd6090e commit 3df6123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quantities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ round(x::AbstractQuantity, r::RoundingMode=RoundNearest; kwargs...) =
round(x::DimensionlessQuantity; kwargs...) = round(uconvert(NoUnits, x); kwargs...)
round(x::DimensionlessQuantity, r::RoundingMode; kwargs...) =
round(uconvert(NoUnits, x), r; kwargs...)
round(::Type{T}, x::AbstractQuantity, r=RoundingMode=RoundNearest;
round(::Type{T}, x::AbstractQuantity, r::RoundingMode=RoundNearest;
kwargs...) where {T<:Number} = _dimerr(:round)
round(::Type{T}, x::DimensionlessQuantity, r::RoundingMode=RoundNearest;
kwargs...) where {T<:Number} = round(T, uconvert(NoUnits, x), r; kwargs...)
Expand Down

0 comments on commit 3df6123

Please sign in to comment.