fixed typo in mmap example
authorGodmar Back <godmar@gmail.com>
Sun, 2 Apr 2006 00:15:15 +0000 (00:15 +0000)
committerGodmar Back <godmar@gmail.com>
Sun, 2 Apr 2006 00:15:15 +0000 (00:15 +0000)
doc/vm.texi

index 6176bbd8dbf4ad38a170347586b18866b8aaa779..8afc49c53d6f9a17665c6f3e22469fa89f8b3dfb 100644 (file)
@@ -713,7 +713,7 @@ with the file mapped into your address space, you can directly address
 it like so:
 
 @example
-write (addr, 64, STDOUT_FILENO);
+write (STDOUT_FILENO, addr, 64);
 @end example
 
 Similarly, if you wanted to replace the first byte of the file,