From c98e6c8e3159799254aa6f5aed904a7ec8e7c68d Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 18 Jan 2010 08:24:09 +0300 Subject: Typos --- README | 4 ++-- brainfuck.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index c93f267..fd9ac54 100644 --- a/README +++ b/README @@ -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); -- cgit v1.2.3