Skip to content

Commit

Permalink
Add doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Nov 9, 2022
1 parent b19f180 commit 6f9a520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arrow-array/src/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ macro_rules! downcast_temporal_array {
/// assert_eq!(primitive_size(&DataType::Int32), 4);
/// assert_eq!(primitive_size(&DataType::Int64), 8);
/// assert_eq!(primitive_size(&DataType::Float16), 2);
/// assert_eq!(primitive_size(&DataType::Decimal128(38, 10)), 16);
/// assert_eq!(primitive_size(&DataType::Decimal256(76, 20)), 32);
/// ```
///
/// [`DataType`]: arrow_schema::DataType
Expand Down

0 comments on commit 6f9a520

Please sign in to comment.