Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Changed str to proper scalar in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
HagaiHargil committed Sep 16, 2021
1 parent a214486 commit 696403b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compute/comparison/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@
//! ```
//! use arrow2::compute::comparison::{utf8_compare_scalar, Operator};
//! # use arrow2::array::{Array, BooleanArray, Utf8Array};
//! # use arrow2::scalar::Utf8Scalar;
//! # use arrow2::error::{ArrowError, Result};
//!
//! let array = Utf8Array::<i32>::from([Some("compute"), None, Some("compare")]);
//! let word = "compare";
//! let result = utf8_compare_scalar(&array, word, Operator::Neq);
//! let word = Utf8Scalar::new(Some("compare"));
//! let result = utf8_compare_scalar(&array, &word, Operator::Neq);
//! assert_eq!(result, BooleanArray::from([Some(true), None, Some(false)]));
//! # Ok::<(), ArrowError>(())
//! ```
Expand Down

0 comments on commit 696403b

Please sign in to comment.