From 0df7e26e16a8344ca1bc64a5f53003d6ef5aa80c Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Fri, 7 Feb 2025 10:07:56 -0800 Subject: [PATCH] fix doc links --- arrow-json/src/reader/mod.rs | 6 +++--- arrow-json/src/reader/tape.rs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arrow-json/src/reader/mod.rs b/arrow-json/src/reader/mod.rs index 9e1f36f12f0..14a8f6809f7 100644 --- a/arrow-json/src/reader/mod.rs +++ b/arrow-json/src/reader/mod.rs @@ -625,17 +625,17 @@ impl Decoder { self.tape_decoder.num_buffered_rows() } - /// True if there are no records to flush, i.e. [`len`] is zero. + /// True if there are no records to flush, i.e. [`Self::len`] is zero. pub fn is_empty(&self) -> bool { self.len() == 0 } /// Flushes the currently buffered data to a [`RecordBatch`] /// - /// Returns `Ok(None)` if no buffered data, i.e. [`is_empty`] is true. + /// Returns `Ok(None)` if no buffered data, i.e. [`Self::is_empty`] is true. /// /// Note: This will return an error if called part way through decoding a record, - /// i.e. [`has_partial_record`] is true. + /// i.e. [`Self::has_partial_record`] is true. pub fn flush(&mut self) -> Result, ArrowError> { let tape = self.tape_decoder.finish()?; diff --git a/arrow-json/src/reader/tape.rs b/arrow-json/src/reader/tape.rs index 9a72c54b143..2a3bb610ce8 100644 --- a/arrow-json/src/reader/tape.rs +++ b/arrow-json/src/reader/tape.rs @@ -550,7 +550,8 @@ impl TapeDecoder { self.cur_row } - /// True if the decoder is part way through decoding a row. If so, calling [`finish`] would return an error. + /// True if the decoder is part way through decoding a row. If so, calling [`Self::finish`] + /// would return an error. pub fn has_partial_row(&self) -> bool { !self.stack.is_empty() }