Skip to content

Commit 82acfe1

Browse files
committed
not unsafe
1 parent ddd0306 commit 82acfe1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arrow-buffer/src/builder/null.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,15 @@ impl NullBufferBuilder {
193193
}
194194
}
195195

196-
/// Extends this builder with validity values from a trusted length iterator.
196+
/// Extends this builder with validity values.
197197
///
198-
/// This is more efficient than calling `append` in a loop as it processes
199-
/// 64 bits at a time internally.
200198
///
201199
/// # Example
202200
/// ```
203201
/// # use arrow_buffer::NullBufferBuilder;
204202
/// let mut builder = NullBufferBuilder::new(8);
205203
/// let validities = [true, false, true, true];
206-
/// builder.extend_from_trusted_len_iter(validities.iter().copied());
204+
/// builder.extend(validities.iter().copied());
207205
/// assert_eq!(builder.len(), 4);
208206
/// ```
209207
pub fn extend<I: Iterator<Item = bool>>(&mut self, iter: I) {

0 commit comments

Comments
 (0)