mit-pdos / xv6-riscv-book

Text describing xv6 on RISC-V
Other
662 stars 137 forks source link

Fix typos in return values #6

Closed ghost closed 4 years ago

ghost commented 4 years ago

Both copyout() and exec() return -1 if they fail, but section 3.8 (Code: exec) of book.pdf says they return 1. It's because mem.tex uses "\-1" and minus signs fall out in the middle of making book.pdf. I suppose you should replace "\-1" with "-1".