From 8fb446659253544f115fbe21db0358e2544c3698 Mon Sep 17 00:00:00 2001 From: Anmol Sethi <hi@nhooyr.io> Date: Mon, 2 Sep 2019 00:15:44 -0500 Subject: [PATCH] Update xerrors link in docs --- statuscode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statuscode.go b/statuscode.go index 498437d..558610d 100644 --- a/statuscode.go +++ b/statuscode.go @@ -43,7 +43,7 @@ const ( // CloseError represents a WebSocket close frame. // It is returned by Conn's methods when a WebSocket close frame is received from // the peer. -// You will need to use https://golang.org/x/xerrors to check for this error. +// You will need to use https://godoc.org/golang.org/x/xerrors#As to check for this error. type CloseError struct { Code StatusCode Reason string -- GitLab