From 4eb318b6600477b7e2942f533feabffeab3c0df8 Mon Sep 17 00:00:00 2001 From: Elliana May Date: Sat, 30 Dec 2023 15:21:59 +0800 Subject: [PATCH] correct docs --- src/vtab/logical_type.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vtab/logical_type.rs b/src/vtab/logical_type.rs index 2bbfa79c..00845260 100644 --- a/src/vtab/logical_type.rs +++ b/src/vtab/logical_type.rs @@ -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) } }