From 39f782cf86ccb1ba7252164e3dfa36c2a1a6253c Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Tue, 16 Feb 2021 20:10:15 +0800 Subject: [PATCH] Fix a wrong import in a doc test in unsync::CacheBuilder --- src/unsync/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unsync/builder.rs b/src/unsync/builder.rs index 85692755..89edd0f2 100644 --- a/src/unsync/builder.rs +++ b/src/unsync/builder.rs @@ -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