From 1739576b7bdeca910a505e94709f04dd716d8d58 Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 17 Sep 2024 15:31:08 +0800 Subject: [PATCH] fix doctest Signed-off-by: xxchan --- src/common/src/array/struct_array.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/src/array/struct_array.rs b/src/common/src/array/struct_array.rs index d81501ed18e40..10ded3a64d66c 100644 --- a/src/common/src/array/struct_array.rs +++ b/src/common/src/array/struct_array.rs @@ -344,10 +344,7 @@ impl StructValue { /// ``` /// # use risingwave_common::types::{StructValue, StructType, DataType, ScalarImpl}; /// - /// let ty = DataType::Struct(StructType::unnamed(vec![ - /// DataType::Int32, - /// DataType::Float64, - /// ])); + /// let ty = StructType::unnamed(vec![DataType::Int32, DataType::Float64]); /// let s = StructValue::from_str("(1, 2.0)", &ty).unwrap(); /// assert_eq!(s.fields()[0], Some(ScalarImpl::Int32(1))); /// assert_eq!(s.fields()[1], Some(ScalarImpl::Float64(2.0.into())));