diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-12 11:59:49 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-12 11:59:49 +0300 |
commit | 3e321a3acd50002cf6fdfd259e910f56d3389bc3 (patch) | |
tree | 3b3e447c5237fe519675395f7a80a9b9f16b86ef /src/xz/file_io.c | |
parent | Update NEWS. (diff) | |
download | xz-3e321a3acd50002cf6fdfd259e910f56d3389bc3.tar.xz |
Remove doubled words from documentation and comments.
Spot candidates by running these commands:
git ls-files |xargs perl -0777 -n \
-e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
-e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g; print "$ARGV:$n:$v\n"}'
Thanks to Jim Meyering for the original patch.
Diffstat (limited to '')
-rw-r--r-- | src/xz/file_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 5555891b..370b61b7 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -53,7 +53,7 @@ static bool io_write_buf(file_pair *pair, const uint8_t *buf, size_t size); extern void io_init(void) { - // Make sure that stdin, stdout, and and stderr are connected to + // Make sure that stdin, stdout, and stderr are connected to // a valid file descriptor. Exit immediately with exit code ERROR // if we cannot make the file descriptors valid. Maybe we should // print an error message, but our stderr could be screwed anyway. |