Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/StaticArraysCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ Used to signify that a dimension of an array is not known statically.
"""
struct Dynamic end

const StaticDimension = Union{Int, Dynamic}
const StaticDimension = Union{Integer, Dynamic}

"""
Size(dims::Int...)
Size(dims::Integer...)

`Size` is used extensively throughout the `StaticArrays` API to describe _compile-time_
knowledge of the size of an array. The dimensions are stored as a type parameter and are
Expand All @@ -478,7 +478,7 @@ size of `A` can be obtained by `Size(A)`. (rather than `size(zeros(3,3))`, which
`Base.Tuple{2,Int}`).

Note that if dimensions are not known statically (e.g., for standard `Array`s),
[`Dynamic()`](@ref) should be used instead of an `Int`.
[`Dynamic()`](@ref) should be used instead of an `Integer`.

Size(a::AbstractArray)
Size(::Type{T<:AbstractArray})
Expand Down