Skip to content

Commit

Permalink
Fix ratelimiting::ROUTES doctest
Browse files Browse the repository at this point in the history
Values are now wrapped within an Arc<Mutex>, so the example needs to
obtain a lock and unwrap it.
  • Loading branch information
Zeyla Hellyer committed May 31, 2017
1 parent d37461b commit 1395a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ratelimiting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lazy_static! {
/// let routes = ROUTES.lock().unwrap();
///
/// if let Some(route) = routes.get(&Route::ChannelsId(7)) {
/// println!("Reset time at: {}", route.reset);
/// println!("Reset time at: {}", route.lock().unwrap().reset);
/// }
/// ```
///
Expand Down

0 comments on commit 1395a1f

Please sign in to comment.