Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed May 15, 2024
1 parent 42d817f commit 56c94da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion integration/src/bin/test-mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ fn main() {
{
const N: usize = 10;

let open_options = OpenOptions::default().create_new(Some(1 << 20)).read(true);
let open_options = OpenOptions::default()
.create_new(Some(1 << 20))
.read(true)
.write(true);
let mmap_options = MmapOptions::default();
let l = Arc::new(SkipMap::mmap_mut(&p, open_options, mmap_options).unwrap());
for i in 0..N {
Expand Down
8 changes: 4 additions & 4 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ impl OpenOptions {
/// This function doesn't create the file if it doesn't exist. Use the
/// [`OpenOptions::create`] method to do so.
///
/// [`write()`]: Write::write "io::Write::write"
/// [`flush()`]: Write::flush "io::Write::flush"
/// [seek]: Seek::seek "io::Seek::seek"
/// [Current]: SeekFrom::Current "io::SeekFrom::Current"
/// [`write()`]: std::io::Write::write "io::Write::write"
/// [`flush()`]: std::io::Write::flush "io::Write::flush"
/// [seek]: std::io::Seek::seek "io::Seek::seek"
/// [Current]: std::io::SeekFrom::Current "io::SeekFrom::Current"
///
/// # Examples
///
Expand Down

0 comments on commit 56c94da

Please sign in to comment.