Skip to content

Commit

Permalink
docs(rust): Fix BinViewChunkedBuilder arguments pola-rs#17277
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnobaev committed Aug 28, 2024
1 parent a5b441a commit a11b2a5
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 a11b2a5

Please sign in to comment.