diff options
author | Igor <pashev.igor@gmail.com> | 2010-01-18 08:24:09 +0300 |
---|---|---|
committer | Igor <pashev.igor@gmail.com> | 2010-01-18 08:24:09 +0300 |
commit | c98e6c8e3159799254aa6f5aed904a7ec8e7c68d (patch) | |
tree | 1fa4166da07a7433a5c5133e19d6b40be33b5cab | |
parent | 595ad985c74837287493fffe680ae9c93d6059cb (diff) | |
download | brainfuck-c98e6c8e3159799254aa6f5aed904a7ec8e7c68d.tar.gz |
Typos
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | brainfuck.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ See http://en.wikipedia.org/wiki/Brainfuck for more details Usage: ./brainfuck [options] [file] Size of each data cell is 4 byte(s) -All data cell are zeros initially +All data cells are zeros initially Options (defaults are in brackets): -s num stack size (128) @@ -28,6 +28,6 @@ Extensions: # - comment to the end of line (useful when reading files) Example: - echo '+++[.-]' | ./brainfuck # count down from 3 to 0 + echo '+++[.-]' | ./brainfuck # count down from 3 to 1 echo ',+++.;5' | ./brainfuck # shows 8 echo ',>,<[->+<]>.;4 5' | ./brainfuck # shows 4+5=9 diff --git a/brainfuck.c b/brainfuck.c index de5f703..c63f076 100644 --- a/brainfuck.c +++ b/brainfuck.c @@ -205,7 +205,7 @@ void usage(char * self) printf("Usage: %s [options] [file]\n\n", self); printf("Size of each data cell is %u byte(s)\n", sizeof(DATATYPE)); - printf("All data cell are zeros initially\n\n"); + printf("All data cells are zeros initially\n\n"); printf("Options (defaults are in brackets):\n"); printf(" -s num stack size (%u)\n", stack_size); printf(" -d num data size (%u)\n", data_size); @@ -228,7 +228,7 @@ void usage(char * self) printf(" # - comment to the end of line (useful when reading files)\n"); printf("\n"); printf("Example:\n"); - printf(" echo '+++[.-]' | %s # count down from 3 to 0\n", self); + printf(" echo '+++[.-]' | %s # count down from 3 to 1\n", self); printf(" echo ',+++.;5' | %s # shows 8\n", self); printf(" echo ',>,<[->+<]>.;4 5' | %s # shows 4+5=9\n", self); |