From 4438b85e294e510edf97510ede486db175e8f084 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 2 Sep 2021 15:41:36 -0400 Subject: [PATCH] comment tweaks --- port_forwarder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/port_forwarder.go b/port_forwarder.go index 4a46cd4e6..f4895bb60 100644 --- a/port_forwarder.go +++ b/port_forwarder.go @@ -27,9 +27,9 @@ func NewPortForwarder(session *Session, name string, remotePort int) *PortForwar } // ForwardToLocalPort forwards traffic between the container's remote -// port and a local TCP port. It accepts and handles TCP connections -// on the local until it encounters the first error, which may include -// context cancellation. Its result is non-nil. +// port and a local TCP port. It accepts and handles connections on +// the local port until it encounters the first error, which may +// include context cancellation. Its error result is always non-nil. func (fwd *PortForwarder) ForwardToLocalPort(ctx context.Context, localPort int) (err error) { id, err := fwd.shareRemotePort(ctx) if err != nil {