summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2019-08-23 10:42:53 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-23 10:44:11 -0700
commite75a12e89de123fb55f19fdf3457d1a200973f59 (patch)
tree4a16da624320de45c95665a4b61de25a50560cef /pkg/tcpip
parentf225fdbbe77c2017225517adcf67df70fcf8e36e (diff)
Implement fmt.Stringer on Route by value
This is more convenient, since it implements the interface for both value and pointer. PiperOrigin-RevId: 265086510
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/tcpip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index 043dd549b..8f9b86cce 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -581,7 +581,7 @@ type Route struct {
}
// String implements the fmt.Stringer interface.
-func (r *Route) String() string {
+func (r Route) String() string {
var out strings.Builder
fmt.Fprintf(&out, "%s", r.Destination)
if len(r.Gateway) > 0 {