This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new ed00e4d Fix code examples for RecordBatch::try_from_iter (#231)
ed00e4d is described below
commit ed00e4d4a160cd5182bfafb81fee2240ec005014
Author: Andrew Lamb <[email protected]>
AuthorDate: Tue Apr 27 08:48:46 2021 -0400
Fix code examples for RecordBatch::try_from_iter (#231)
---
arrow/src/record_batch.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arrow/src/record_batch.rs b/arrow/src/record_batch.rs
index 39ef227..f1fd867 100644
--- a/arrow/src/record_batch.rs
+++ b/arrow/src/record_batch.rs
@@ -268,7 +268,7 @@ impl RecordBatch {
/// ("a", a),
/// ("b", b),
/// ]);
- ///
+ /// ```
pub fn try_from_iter<I, F>(value: I) -> Result<Self>
where
I: IntoIterator<Item = (F, ArrayRef)>,
@@ -307,6 +307,7 @@ impl RecordBatch {
/// ("a", a, false),
/// ("b", b, true),
/// ]);
+ /// ```
pub fn try_from_iter_with_nullable<I, F>(value: I) -> Result<Self>
where
I: IntoIterator<Item = (F, ArrayRef, bool)>,