diff --git a/arrow/src/array/array_string.rs b/arrow/src/array/array_string.rs index 0519148e6f47..8b0ad1041761 100644 --- a/arrow/src/array/array_string.rs +++ b/arrow/src/array/array_string.rs @@ -340,10 +340,26 @@ impl From> /// An array where each element is a variable-sized sequence of bytes representing a string /// whose maximum length (in bytes) is represented by a i32. +/// +/// Example +/// +/// ``` +/// use arrow::array::StringArray; +/// let array = StringArray::from(vec![Some("foo"), None, Some("bar")]); +/// assert_eq!(array.value(0), "foo"); +/// ``` pub type StringArray = GenericStringArray; /// An array where each element is a variable-sized sequence of bytes representing a string /// whose maximum length (in bytes) is represented by a i64. +/// +/// Example +/// +/// ``` +/// use arrow::array::LargeStringArray; +/// let array = LargeStringArray::from(vec![Some("foo"), None, Some("bar")]); +/// assert_eq!(array.value(2), "bar"); +/// ``` pub type LargeStringArray = GenericStringArray; impl From> for GenericStringArray {