Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan committed Sep 17, 2024
1 parent 0bc7af8 commit 1739576
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/src/array/struct_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())));
Expand Down

0 comments on commit 1739576

Please sign in to comment.