Skip to content

Commit

Permalink
Fix broken doc test (#8517)
Browse files Browse the repository at this point in the history
This broke `cargo t --all --all-features`, which is not run on CI, hence
why it doesn't show up there.
  • Loading branch information
teh-cmc authored Dec 17, 2024
1 parent 06fed3d commit b1fe788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/top/rerun/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@
//! You can buffer the log messages in memory and then show them in an embedded viewer:
//!
//! ```no_run
//! # let main_thread_token = re_capabilities::MainThreadToken::i_promise_i_am_on_the_main_thread();
//! # fn log_to(rec: &rerun::RecordingStream) {}
//! let (rec, storage) = rerun::RecordingStreamBuilder::new("rerun_example_app").memory()?;
//! log_to(&rec);
//!
//! // Will block program execution!
//! rerun::native_viewer::show(storage.take());
//! rerun::native_viewer::show(main_thread_token, storage.take());
//!
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
Expand Down

0 comments on commit b1fe788

Please sign in to comment.