mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-07 09:16:52 +08:00
Fix erroneous comment in example code
This commit is contained in:
parent
f2cf5f3c91
commit
dde5edb18a
@ -85,9 +85,9 @@ int main()
|
|||||||
const auto path = "file.txt";
|
const auto path = "file.txt";
|
||||||
|
|
||||||
// NOTE: mio does *not* create the file for you if it doesn't exist! You
|
// NOTE: mio does *not* create the file for you if it doesn't exist! You
|
||||||
// must ensure that the file exist before establishing a mapping. It must
|
// must ensure that the file exists before establishing a mapping. It
|
||||||
// also be at least 43 bytes long for the below indexing to work. So for
|
// must also be non-empty. So for illustrative purposes the file is
|
||||||
// illustrative purposes the file is created now.
|
// created now.
|
||||||
allocate_file(path, 155);
|
allocate_file(path, 155);
|
||||||
|
|
||||||
// Read-write memory map the whole file by using `map_entire_file` where the
|
// Read-write memory map the whole file by using `map_entire_file` where the
|
||||||
|
|||||||
@ -24,9 +24,9 @@ int main()
|
|||||||
const auto path = "file.txt";
|
const auto path = "file.txt";
|
||||||
|
|
||||||
// NOTE: mio does *not* create the file for you if it doesn't exist! You
|
// NOTE: mio does *not* create the file for you if it doesn't exist! You
|
||||||
// must ensure that the file exist before establishing a mapping. It must
|
// must ensure that the file exists before establishing a mapping. It
|
||||||
// also be at least 43 bytes long for the below indexing to work. So for
|
// must also be non-empty. So for illustrative purposes the file is
|
||||||
// illustrative purposes the file is created now.
|
// created now.
|
||||||
allocate_file(path, 155);
|
allocate_file(path, 155);
|
||||||
|
|
||||||
// Read-write memory map the whole file by using `map_entire_file` where the
|
// Read-write memory map the whole file by using `map_entire_file` where the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user