Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Taylor-Davies <[email protected]>
  • Loading branch information
alamb and tustvold authored Apr 13, 2022
1 parent 438ae14 commit 9b43297
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arrow/src/json/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,9 @@ where

/// JSON values to Arrow record batch decoder.
///
/// A [Decoder] decodes arbitrary streams of [serde_json::Value]s and
/// converts them to [RecordBatch]es. To decode JSON formatted files,
/// see [Reader].
/// A [`Decoder`] decodes arbitrary streams of [`serde_json::Value`]s and
/// converts them to [`RecordBatch`]es. To decode JSON formatted files,
/// see [`Reader`].
///
/// # Examples
/// ```
Expand Down Expand Up @@ -639,7 +639,7 @@ impl DecoderOptions {

impl Decoder {
/// Create a new JSON decoder from some value that implements an
/// iterator over [serde_json::Value]s (aka implements the
/// iterator over [`serde_json::Value`]s (aka implements the
/// `Iterator<Item=Result<Value>>` trait).
pub fn new(schema: SchemaRef, options: DecoderOptions) -> Self {
Self { schema, options }
Expand Down Expand Up @@ -668,8 +668,8 @@ impl Decoder {
}
}

/// Read the next batch of [serde_json::Value] records from the
/// interator into a [RecordBatch].
/// Read the next batch of [`serde_json::Value`] records from the
/// interator into a [`RecordBatch`].
///
/// Returns `None` if the input iterator is exhausted.
pub fn next_batch<I>(&self, value_iter: &mut I) -> Result<Option<RecordBatch>>
Expand Down

0 comments on commit 9b43297

Please sign in to comment.