Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 14, 2023
1 parent 4f6d023 commit 311322e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/re_data_source/src/load_stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use re_smart_channel::Sender;
/// Asynchronously loads RRD data streaming in from standard input.
///
/// This fails synchronously iff the standard input stream could not be opened, otherwise errors
/// are handlded asynchronously (as in: they're logged).
/// are handled asynchronously (as in: they're logged).
pub fn load_stdin(tx: Sender<LogMsg>) -> anyhow::Result<()> {
let version_policy = re_log_encoding::decoder::VersionPolicy::Warn;

Expand Down
3 changes: 2 additions & 1 deletion crates/re_log_encoding/src/file_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl FileSink {
}
}

/// Set `filepath` to `None` to stream to standard output.
fn spawn_and_stream<W: std::io::Write + Send + 'static>(
filepath: Option<&std::path::Path>,
mut encoder: crate::encoder::Encoder<W>,
Expand Down Expand Up @@ -159,7 +160,7 @@ impl fmt::Debug for FileSink {
f.debug_struct("FileSink")
.field(
"path",
&self.path.as_ref().cloned().unwrap_or("stdin".into()),
&self.path.as_ref().cloned().unwrap_or("stdout".into()),
)
.finish_non_exhaustive()
}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/reference/sdk-operating-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Use [`rr.save`](https://ref.rerun.io/docs/python/stable/common/initialization_fu
Use [`RecordingStream::save`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.save).


## Standard Input/Ouput
## Standard Input/Output

Streams all logging data to standard output, which can then be loaded by the Rerun Viewer by streaming it from standard input.

Expand Down

0 comments on commit 311322e

Please sign in to comment.