Skip to content

Commit 28c6397

Browse files
committed
docs
1 parent 79b6f7e commit 28c6397

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arrow-schema/src/datatype_parse.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ impl<'a> Parser<'a> {
371371
Box::new(value_type),
372372
))
373373
}
374+
375+
/// Parses the next Struct (called after `Struct` has been consumed)
374376
fn parse_struct(&mut self) -> ArrowResult<DataType> {
375377
self.expect_token(Token::LParen)?;
376378
let mut fields = Vec::new();
@@ -410,6 +412,7 @@ impl<'a> Parser<'a> {
410412
Ok(DataType::Struct(Fields::from(fields)))
411413
}
412414

415+
/// return and consume if the next token is `Token::Nullable`
413416
fn nullable(&mut self) -> bool {
414417
self.tokenizer
415418
.next_if(|next| matches!(next, Ok(Token::Nullable)))

0 commit comments

Comments
 (0)