From 1125611b9b8d4a209b6a73d2c76e1b39c065972a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 12 Apr 2011 11:59:49 +0300 Subject: 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. --- src/liblzma/common/alone_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liblzma/common/alone_encoder.c') diff --git a/src/liblzma/common/alone_encoder.c b/src/liblzma/common/alone_encoder.c index d8c0170f..7f616557 100644 --- a/src/liblzma/common/alone_encoder.c +++ b/src/liblzma/common/alone_encoder.c @@ -103,7 +103,7 @@ alone_encoder_init(lzma_next_coder *next, lzma_allocator *allocator, if (options->dict_size < LZMA_DICT_SIZE_MIN) return LZMA_OPTIONS_ERROR; - // Round up to to the next 2^n or 2^n + 2^(n - 1) depending on which + // Round up to the next 2^n or 2^n + 2^(n - 1) depending on which // one is the next unless it is UINT32_MAX. While the header would // allow any 32-bit integer, we do this to keep the decoder of liblzma // accepting the resulting files. -- cgit v1.2.3