Skip to content

Commit

Permalink
Fix a wrong import in a doc test in unsync::CacheBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Feb 16, 2021
1 parent 6ee47df commit 39f782c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unsync/builder.rs
Expand Up @@ -14,11 +14,11 @@ use std::{
/// # Examples
///
/// ```rust
/// use moka::future::CacheBuilder;
/// use moka::unsync::CacheBuilder;
///
/// use std::time::Duration;
///
/// let cache = CacheBuilder::new(10_000) // Max 10,000 elements
/// let mut cache = CacheBuilder::new(10_000) // Max 10,000 elements
/// // Time to live (TTL): 30 minutes
/// .time_to_live(Duration::from_secs(30 * 60))
/// // Time to idle (TTI): 5 minutes
Expand Down

0 comments on commit 39f782c

Please sign in to comment.