You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/quic/streams.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,7 @@ When a stream is reset (i.e. when `CancelRead` or `CancelWrite` are used), appli
115
115
QUIC itself does not interpret this value; instead, it is the responsibility of the application layer to assign specific meanings to different error codes.
116
116
117
117
```go
118
-
varstreamErr *quic.StreamError
119
-
if errors.As(err, &streamErr) {
118
+
ifstreamErr, ok:= errors.AsType[*quic.StreamError](err); ok {
0 commit comments