Re: [PATCH] More typofixes.
- From
David Aguilar <davvid@gmail.com>
- Date
- Jul 29, 2013, 09:40 UTC
- Message-ID
- <CAJDDKr4M-QjbiF6Yu=JKYvGP1QVm4MwkU0q8d0gDXtys3VAiog@mail.gmail.com>
- In-Reply-To
- <20130729081821.GA6758@domone.kolej.mff.cuni.cz>
On Mon, Jul 29, 2013 at 1:18 AM, Ondřej Bílka <neleai@seznam.cz> wrote:
Show 31 quoted lines
> Hi, > > I improved my tool and it catched following additional typos. > > As with any big project best way to catch errors is to have automated > checks that catch them ( Other possibility would be to read everything ten > times to get error rate down but nobody wants to do it). > > If you want you could add a pre-commit hook > stylepp-spellcheck --hook > that checks comments for likely typos (misspells by aspell and not > occurring in code). It uses aspell to identify them so you need to > teach aspell which words are valid. > > I would like make possible to share dictionaries so teaching phase can > be done only once instead for each person but I did not found suitable > workflow yet. > > > Signed-off-by: Ondřej Bílka <neleai@seznam.cz> > > diff --git a/pathspec.c b/pathspec.c > index 6ea0867..27ffe77 100644 > --- a/pathspec.c > +++ b/pathspec.c > @@ -40,7 +40,7 @@ void add_pathspec_matches_against_index(const char **pathspec, > /* > * Finds which of the given pathspecs match items in the index. > * > - * This is a one-shot wrapper around add_pathspec_matches_against_index() > + * This is an one-shot wrapper around add_pathspec_matches_against_index()
"one" is pronounced like "wun" so we use "a" instead of "an" here. These should stay as-is.
-- David