public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top, Laine Stump <laine@redhat.com>,
	Yalan Zhang <yalzhang@redhat.com>
Subject: Re: [PATCH] passt.1: Fix typo, improve wording in examples of port forwarding specifiers
Date: Thu, 16 Feb 2023 08:19:37 +0100	[thread overview]
Message-ID: <20230216081937.478f0b3d@elisabeth> (raw)
In-Reply-To: <Y+2YhCHbXpkQedQz@yekko>

On Thu, 16 Feb 2023 13:44:20 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Thu, Feb 16, 2023 at 02:09:00AM +0100, Stefano Brivio wrote:
> > Based on a patch from Laine, and reports from Laine and Yalan: fix
> > the "22-80:32-90" example, and improve wording for the other ones:
> > instead of using "to" to denote the end of a range, use "between ...
> > and", so that it's clear we're *not* referring to target ports.
> > 
> > Reported-by: Laine Stump <laine@redhat.com>
> > Reported-by: Yalan Zhang <yalzhang@redhat.com>
> > Fixes: da20f57f19dc ("passt, qrap: Add man pages")
> > Signed-off-by: Stefano Brivio <sbrivio@redhat.com>  
> 
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> 
> Although, a few additional refinements suggested below:
> 
> > ---
> >  passt.1 | 29 ++++++++++++++++-------------
> >  1 file changed, 16 insertions(+), 13 deletions(-)
> > 
> > diff --git a/passt.1 b/passt.1
> > index 528763b..ec09c22 100644
> > --- a/passt.1
> > +++ b/passt.1
> > @@ -338,7 +338,7 @@ Examples:
> >  .RS
> >  .TP
> >  -t 22
> > -Forward local port 22 to 22 on the guest
> > +Forward local port 22 to port 22 on the guest
> >  .TP
> >  -t 22:23
> >  Forward local port 22 to port 23 on the guest
> > @@ -347,10 +347,11 @@ Forward local port 22 to port 23 on the guest
> >  Forward local ports 22 and 25 to ports 22 and 25 on the guest
> >  .TP
> >  -t 22-80
> > -Forward local ports 22 to 80 to corresponding ports on the guest
> > +Forward local ports between 22 and 80 to corresponding ports on the guest
> >  .TP
> > --t 22-80-32:90
> > -Forward local ports 22 to 80 to corresponding ports on the guest plus 10
> > +-t 22-80:32-90
> > +Forward local ports between 22 and 80 to corresponding ports on the guest, plus
> > +10  
> 
> I find it a bit hard to parse how the "plus 10" attaches to the rest
> of the sentence.  I'd suggest:
> 
> 	Forward local ports between 22 and 80 to ports between 32 and
> 	90 on the guest.
> 
> From a pedantic point of view that's less precise, but I think the
> meaning of it going to be clearer in practice to most readers

Ah, yes, thanks, much better. Same for all the other suggestions.
Posting v2.

-- 
Stefano


      reply	other threads:[~2023-02-16  7:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-16  1:09 [PATCH] passt.1: Fix typo, improve wording in examples of port forwarding specifiers Stefano Brivio
2023-02-16  2:44 ` David Gibson
2023-02-16  7:19   ` Stefano Brivio [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=20230216081937.478f0b3d@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=laine@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=yalzhang@redhat.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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).