Skip to content

Commit

Permalink
a little more vector doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed May 11, 2024
1 parent 3b058e2 commit 77fc74c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ pub type ArrayType<F> = SmallVec<[F; 4]>;
/// # }
/// ```
///
/// Vectors can have arbitrary length and are represented as `Val::Array(SmallVec<[F; 4]>)`. That
/// is, a vector always consists of floats. Vectors of bools or ints do not exist. Further,
/// 4 elements are stored on the stack, and if more are needed, they are stored on the heap.
/// An example with vectors is shown in the following.
///
/// ```rust
Expand Down

0 comments on commit 77fc74c

Please sign in to comment.