From: Peter Cordes <peter@cordes.ca>
To: Tilman Schmidt <tilman@imap.cc>
Cc: Yuri Chornoivan <yurchor@gmail.com>, util-linux@vger.kernel.org
Subject: Re: [PATCH] Fix word repetitions
Date: Tue, 14 Feb 2017 23:01:21 -0400 [thread overview]
Message-ID: <20170215030121.GW8687@cordes.ca> (raw)
In-Reply-To: <4628c807-c74f-fe57-2cab-6690fa94d4d7@imap.cc>
[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]
On Tue, Feb 14, 2017 at 11:40:34PM +0100, Tilman Schmidt wrote:
> Am 10.02.2017 um 12:05 schrieb Yuri Chornoivan:
> > - /* Reformat string string to avoid doing it multiple times later. */
> > + /* Reformat string to avoid doing it multiple times later. */
>
> Actually I don't think this is a word repetition. It looks to me like
> it's really talking about "string string" - the string held in the
> variable named "string".
That sounds like a valid interpretation, but the new version reads
better.
> > - * If anything goes wrong (and many things can), we return return code 10
> > + * If anything goes wrong (and many things can), we return code 10
>
> Nor is this, as it talks about the return code that will be returned.
Good point here. The original version works, but is more verbose
than it needs to be.
"we return code 10" is a valid way to describe the return value, but just
"we return 10" is simpler and unambiguous. I don't think the comment
needs to explicitly call it a code.
--
#define X(x,y) x##y
Peter Cordes ; e-mail: X(peter@cor , des.ca)
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack
my day so wretchedly into small pieces!" -- Plautus, 200 BC
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 359 bytes --]
prev parent reply other threads:[~2017-02-15 3:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 11:05 [PATCH] Fix word repetitions Yuri Chornoivan
2017-02-13 13:18 ` Karel Zak
2017-02-14 22:40 ` Tilman Schmidt
2017-02-15 3:01 ` Peter Cordes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170215030121.GW8687@cordes.ca \
--to=peter@cordes.ca \
--cc=tilman@imap.cc \
--cc=util-linux@vger.kernel.org \
--cc=yurchor@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.