Skip to content

Commit

Permalink
docs(rust): Fix BinViewChunkedBuilder arguments (#17277) (#18439)
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnobaev authored Aug 28, 2024
1 parent 6ff1c70 commit b2550a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/polars-core/src/chunked_array/builder/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ pub type StringChunkedBuilder = BinViewChunkedBuilder<str>;
pub type BinaryChunkedBuilder = BinViewChunkedBuilder<[u8]>;

impl<T: ViewType + ?Sized> BinViewChunkedBuilder<T> {
/// Create a new StringChunkedBuilder
/// Create a new BinViewChunkedBuilder
///
/// # Arguments
///
/// * `capacity` - Number of string elements in the final array.
/// * `bytes_capacity` - Number of bytes needed to store the string values.
pub fn new(name: &str, capacity: usize) -> Self {
Self {
chunk_builder: MutableBinaryViewArray::with_capacity(capacity),
Expand Down

0 comments on commit b2550a0

Please sign in to comment.