diff options
| author | Nicolas Paul <n@nc0.fr> | 2023-04-07 01:18:07 +0200 |
|---|---|---|
| committer | Nicolas Paul <nicolaspaul45400@gmail.com> | 2023-04-07 01:18:36 +0200 |
| commit | 96c174f226767294186467715a1931cce850678d (patch) | |
| tree | 553b3a2457387667743ecc7df61b83abd7d3d46e /vendor/google.golang.org/protobuf/encoding/protowire | |
| parent | 2e4db08bc6360a13e167ad9eca7f21dc8a2f89a9 (diff) | |
update deps
Diffstat (limited to 'vendor/google.golang.org/protobuf/encoding/protowire')
| -rw-r--r-- | vendor/google.golang.org/protobuf/encoding/protowire/wire.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vendor/google.golang.org/protobuf/encoding/protowire/wire.go b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go index ce57f57..f4b4686 100644 --- a/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +++ b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // Package protowire parses and formats the raw wire encoding. -// See https://developers.google.com/protocol-buffers/docs/encoding. +// See https://protobuf.dev/programming-guides/encoding. // // For marshaling and unmarshaling entire protobuf messages, // use the "google.golang.org/protobuf/proto" package instead. @@ -29,12 +29,8 @@ const ( ) // IsValid reports whether the field number is semantically valid. -// -// Note that while numbers within the reserved range are semantically invalid, -// they are syntactically valid in the wire format. -// Implementations may treat records with reserved field numbers as unknown. func (n Number) IsValid() bool { - return MinValidNumber <= n && n < FirstReservedNumber || LastReservedNumber < n && n <= MaxValidNumber + return MinValidNumber <= n && n <= MaxValidNumber } // Type represents the wire type. |
