Skip to content

Commit

Permalink
Fix up some doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRega committed Mar 22, 2023
1 parent daaddaf commit 4c17add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lazyvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use tokio::sync::mpsc::{channel, Receiver, Sender};
/// // direct usage:
/// let promise = LazyValuePromise::new(updater, 10);
/// // for usage of the progress, see the docs of [`LazyVecPromise`]
/// fn main_loop(lazy_promise: &mut LazyValuePromise<i32>) {
/// fn main_loop(mut lazy_promise: LazyValuePromise<i32>) {
/// loop {
/// match lazy_promise.poll_state() {
/// DataState::Error(er) => { println!("Error {} occurred! Retrying!", er); std::thread::sleep(Duration::from_millis(500)); lazy_promise.update(); }
Expand Down
2 changes: 1 addition & 1 deletion src/lazyvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use tokio::sync::mpsc::{channel, Receiver, Sender};
/// // direct usage:
/// let promise = LazyVecPromise::new(updater, 200);
///
/// fn main_loop(lazy_promise: &mut LazyVecPromise<i32>) {
/// fn main_loop(mut lazy_promise: LazyVecPromise<i32>) {
/// loop {
/// let state = lazy_promise.poll_state();
/// let progress = state.get_progress().unwrap_or_default();
Expand Down

0 comments on commit 4c17add

Please sign in to comment.