Skip to content

Commit

Permalink
correct docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Dec 30, 2023
1 parent 9fdc3e4 commit 4eb318b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vtab/logical_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,13 @@ impl LogicalType {
}

/// Retrieves the decimal width
/// # Panics
/// If the LogicalType is not a decimal
/// Returns 0 if the LogicalType is not a decimal
pub fn decimal_width(&self) -> u8 {
unsafe { duckdb_decimal_width(self.ptr) }
}

/// Retrieves the decimal scale
/// # Panics
/// If the LogicalType is not a decimal
/// Returns 0 if the LogicalType is not a decimal
pub fn decimal_scale(&self) -> u8 {
unsafe { duckdb_decimal_scale(self.ptr) }
}
Expand Down

0 comments on commit 4eb318b

Please sign in to comment.