This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH COMMITTED] Fix a few typos in comments


On Sat, Jan 12, 2019 at 10:15:49AM -0500, Zack Weinberg wrote:
> On Sat, Jan 12, 2019 at 9:17 AM Dmitry V. Levin wrote:
> >
> > Apply the following spelling fixes:
> > $ git grep -F -l 'relevent' |
> >   xargs sed -i 's/relevent/relevant/g'
> 
> This kind of patch is useful and welcome, but I want to warn anyone
> who might be tempted to do something similar: after making global
> mechanical search-and-replace changes like this, you must manually
> review the diff and make sure you only changed text in comments, not
> code, and not names in comments either.  It would not be appropriate,
> for instance, to "correct" the name of the function "creat".

I agree.  While these spelling fixes look automatic, they were in fact
semi-automatic, and the script in the commit message was made afterwards
for better understanding, to save your time reviewing changes like this:

-   argp_state_help, STATE is the relevent parsing state.  FLAGS are from the
+   argp_state_help, STATE is the relevant parsing state.  FLAGS are from the


-- 
ldv

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]