summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/buffer/view.go
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-08-15 17:00:54 -0700
committerShentubot <shentubot@google.com>2018-08-15 17:02:15 -0700
commiteacbe6a678ec08751543868ef19f9197c167fe60 (patch)
treebdad3bf63acb1b45e238ceb8a0c25b04d11ef8e8 /pkg/tcpip/buffer/view.go
parent635b0c45933cd841298b0c21a513a9169e849594 (diff)
Remove obsolete comment about panicking
PiperOrigin-RevId: 208908702 Change-Id: I6be9c765c257a9ddb1a965a03942ab3fc3a34a43
Diffstat (limited to 'pkg/tcpip/buffer/view.go')
-rw-r--r--pkg/tcpip/buffer/view.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/tcpip/buffer/view.go b/pkg/tcpip/buffer/view.go
index bbb4e1d24..85ae38ac8 100644
--- a/pkg/tcpip/buffer/view.go
+++ b/pkg/tcpip/buffer/view.go
@@ -121,7 +121,6 @@ func (vv *VectorisedView) Clone(buffer []View) VectorisedView {
}
// First returns the first view of the vectorised view.
-// It panics if the vectorised view is empty.
func (vv *VectorisedView) First() View {
if len(vv.views) == 0 {
return nil