Skip to content

Commit b583e46

Browse files
committed
Clean up docs
1 parent 895c69e commit b583e46

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/types.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ dimensions according to the operation.
7171
7272
# Constructors
7373
74-
- `Quantity(x; kws...)`: Construct a quantity with value `x` and dimensions given by the keyword arguments. The value type is inferred from `x`. `R` is set to `DEFAULT_DIM_TYPE`.
75-
- `Quantity(x, ::Type{D}; kws...)`: Construct a quantity with value `x` with no dimensions, and the dimensions type set to `D`.
74+
- `Quantity(x; kws...)`: Construct a quantity with value `x` and dimensions given by the keyword arguments. The value
75+
type is inferred from `x`. `R` is set to `DEFAULT_DIM_TYPE`.
76+
- `Quantity(x, ::Type{D}; kws...)`: Construct a quantity with value `x` with dimensions given by the keyword arguments,
77+
and the dimensions type set to `D`.
7678
- `Quantity(x, d::D)`: Construct a quantity with value `x` and dimensions `d` of type `D`.
7779
- `Quantity{T}(...)`: As above, but converting the value to type `T`. You may also pass a `Quantity` as input.
78-
- `Quantity{T,D}(...)`: As above, but converting the value to type `T` and dimensions to `D`. You may also pass a `Quantity` as input.
80+
- `Quantity{T,D}(...)`: As above, but converting the value to type `T` and dimensions to `D`. You may also pass a
81+
`Quantity` as input.
7982
"""
8083
struct Quantity{T,D<:AbstractDimensions} <: AbstractQuantity{T,D}
8184
value::T

0 commit comments

Comments
 (0)