Update lib/cache/src/filesystem.rs

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
Ivan Enderlin
2020-07-21 09:56:17 +02:00
committed by GitHub
parent e820ec7985
commit 6f0937fd03

View File

@@ -22,7 +22,7 @@ use wasmer::{DeserializeError, Module, SerializeError, Store};
/// let mut fs_cache = FileSystemCache::new("some/directory/goes/here")?;
///
/// // Compute a key for a given WebAssembly binary
/// let hash = Hash::generate(key);
/// let hash = Hash::generate(bytes);
///
/// // Store a module into the cache given a key
/// fs_cache.store(key, module.clone())?;