Mercurial > lbo > hg > memoize
changeset 35:db9afeb14f1d
Fx typo
author | Илья Ефимов <inferrna@gmail.com> |
---|---|
date | Fri, 11 Dec 2020 01:31:57 +0800 |
parents | 65332ad1cf1b |
children | 7723677c1a0e |
files | src/lib.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib.rs Fri Dec 11 01:28:20 2020 +0800 +++ b/src/lib.rs Fri Dec 11 01:31:57 2020 +0800 @@ -185,7 +185,7 @@ * The `memoize` attribute can take further parameters in order to use an LRU cache: * `#[memoize(Capacity: 1234)]`. In that case, instead of a `HashMap` we use an `lru::LruCache` * with the given capacity. - * `#[memoize(TimeToLive: Duration::from_secs(2))]`. In that case, cached walue will be actual + * `#[memoize(TimeToLive: Duration::from_secs(2))]`. In that case, cached value will be actual * no longer than duration provided and refreshed with next request. If you prefer chrono::Duration, * it can be also used: `#[memoize(TimeToLive: chrono::Duration::hours(9).to_std().unwrap()]` *