No, the argument should really be 10000. But the sentence below the example is confusing (and has a typo). It should be something like:
Note that 4096 bytes of the file are mapped (even though the file size at the time of mmap was 1024 bytes) because files are mapped in page-sized chunks.