git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] doc: fix some typos

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Jan 2, 2021, 22:59 UTC
Message-ID
<CAN0heSq3q1X8jJqBkHtrTxaxJ4xfw5kQtH+b8GG9OWRXHExt+g@mail.gmail.com>
In-Reply-To
<5ff0f31315732_a76d20833@natae.notmuch>

On Sat, 2 Jan 2021 at 23:26, Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 34 quoted lines
>
> Martin Ågren wrote:
> > On Sat, 2 Jan 2021 at 18:43, Thomas Ackermann via GitGitGadget
> > <gitgitgadget@gmail.com> wrote:
> >
> > [Snip several typo fixes in Documentation/, all of which I agree with.]
> >
> > > diff --git a/contrib/buildsystems/CMakeLists.txt b/contrib/buildsystems/CMakeLists.txt
> > > index c151dd7257f..8f77baa678f 100644
> > > --- a/contrib/buildsystems/CMakeLists.txt
> > > +++ b/contrib/buildsystems/CMakeLists.txt
> >
> > Hmm... This does not match the "doc:" prefix of the patch.
> >
> > > @@ -442,7 +442,7 @@ endif()
> > >  check_c_source_compiles("
> > >  #include <regex.h>
> > >  #ifndef REG_STARTEND
> > > -#error oops we dont have it
> > > +#error oops we don't have it
> > >  #endif
> >
> > I don't think this is correct. This omission of the single quote somehow
> > looks like it's done on purpose. I don't build using this system, but I
> > tried making some silly code like this in another file, which I actually
> > do use:
> >
> > #if 0
> > #error might or mightn't work
> > #endif
>
> But this works:
>
> #error "might or mightn't work"

Yeah, I pondered writing something like that. But then I thought I would also need to write something about how, at the least, it should still be a separate patch, but also how even if it were a separate patch, I would probably sort it under code churn (IMVHO).

The error is not really intended for anyone's eyes, at least assuming my reading is correct. So I refrained from suggesting to Thomas that here's how you could go about making such a change.

And now I ended up laying out my thoughts anyway. :-) Of course, others may well disagree with me about this being code churn.

Martin
Previous: Felipe ContrerasNext: Felipe Contreras
Message 4 of 9 in “doc: fix some typos”
  1. doc: fix some typosThomas Ackermann via GitGitGadget, Jan 2, 2021
  2. Martin ÅgrenJan 2, 2021
  3. Felipe ContrerasJan 2, 2021
  4. Martin ÅgrenJan 2, 2021
  5. Felipe ContrerasJan 2, 2021
  6. Chris TorekJan 3, 2021
  7. doc: fix some typosThomas Ackermann via GitGitGadget, Jan 3, 2021
  8. Martin ÅgrenJan 3, 2021
  9. Junio C HamanoJan 6, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.