diff options
-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); |