From 6ee7e3fc165db956e02ddace14ff6fa5113f182f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Tue, 21 May 2019 00:48:26 +0200 Subject: [PATCH] Fix example in README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index af467ee..e1074f4 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Note: it is recommended to wrap the underlying file struct in a buffering/cachin extern crate fscommon; let buf_stream = BufStream::new(img_file); - let fs = fatfs::FileSystem::new(img_file, fatfs::FsOptions::new())?; + let fs = fatfs::FileSystem::new(buf_stream, fatfs::FsOptions::new())?; See more examples in the `examples` subdirectory.