Skip to content

Commit 77f6cd6

Browse files
authored
Merge pull request #1368 from nicholasbishop/bishop-update-fs-doc
uefi: Update FS docstring example code
2 parents 5d52fd8 + 65bc12c commit 77f6cd6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

uefi/src/fs/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@
2727
//! ```no_run
2828
//! use uefi::CString16;
2929
//! use uefi::fs::{FileSystem, FileSystemResult};
30-
//! use uefi::prelude::BootServices;
3130
//! use uefi::proto::media::fs::SimpleFileSystem;
32-
//! use uefi::table::boot::ScopedProtocol;
31+
//! use uefi::boot::{self, ScopedProtocol};
3332
//!
34-
//! fn read_file(bs: BootServices, path: &str) -> FileSystemResult<Vec<u8>> {
33+
//! fn read_file(path: &str) -> FileSystemResult<Vec<u8>> {
3534
//! let path: CString16 = CString16::try_from(path).unwrap();
36-
//! let fs: ScopedProtocol<SimpleFileSystem> = bs.get_image_file_system(bs.image_handle()).unwrap();
35+
//! let fs: ScopedProtocol<SimpleFileSystem> = boot::get_image_file_system(boot::image_handle()).unwrap();
3736
//! let mut fs = FileSystem::new(fs);
3837
//! fs.read(path.as_ref())
3938
//! }

0 commit comments

Comments
 (0)