Skip to content

Commit c350ca2

Browse files
committed
Vector Scalars
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 53d1168 commit c350ca2

File tree

1 file changed

+2
-3
lines changed
  • vortex-vector/src/decimal

1 file changed

+2
-3
lines changed

vortex-vector/src/decimal/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//!
2222
//! // Create a decimal vector with precision=9, scale=2 (e.g., up to 9999999.99).
2323
//! let ps = PrecisionScale::<i32>::new(9, 2);
24-
//! let mut vec = DVectorMut::<i32>::with_capacity(&decimal_dtype, 5);
24+
//! let mut vec = DVectorMut::<i32>::with_capacity(ps, 5);
2525
//! assert_eq!(vec.len(), 0);
2626
//! assert!(vec.capacity() >= 5);
2727
//!
@@ -40,8 +40,7 @@
4040
//! use vortex_mask::MaskMut;
4141
//! let elements = BufferMut::from_iter([100_i32, 200, 300]); // 1.00, 2.00, 3.00.
4242
//! let validity = MaskMut::new_true(3);
43-
//! let ps = PrecisionScale::<i32>::try_from(&decimal_dtype).unwrap();
44-
//! let decimal_vec = DVectorMut::new(ps, elements, validity);
43+
//! let decimal_vec = DVectorMut::<i32>::new(ps, elements, validity);
4544
//! assert_eq!(decimal_vec.len(), 3);
4645
//! ```
4746
//!

0 commit comments

Comments
 (0)