From fdfa9ccbce91aa35b0af9cd23e22a36dee348849 Mon Sep 17 00:00:00 2001 From: EZ4Jam1n <1286884552@qq.com> Date: Fri, 26 Jul 2024 20:28:51 +0800 Subject: [PATCH] fix: typos --- .../example/idl/google/protobuf/descriptor.proto | 2 +- protoc-gen-http-swagger/generator/wellknown/schemas.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc-gen-http-swagger/example/idl/google/protobuf/descriptor.proto b/protoc-gen-http-swagger/example/idl/google/protobuf/descriptor.proto index 4748643..0350c92 100644 --- a/protoc-gen-http-swagger/example/idl/google/protobuf/descriptor.proto +++ b/protoc-gen-http-swagger/example/idl/google/protobuf/descriptor.proto @@ -75,7 +75,7 @@ enum Edition { EDITION_2023 = 1000; // Placeholder editions for testing feature resolution. These should not be - // used or relyed on outside of tests. + // used or relied on outside of tests. EDITION_1_TEST_ONLY = 1; EDITION_2_TEST_ONLY = 2; EDITION_99997_TEST_ONLY = 99997; diff --git a/protoc-gen-http-swagger/generator/wellknown/schemas.go b/protoc-gen-http-swagger/generator/wellknown/schemas.go index 565844e..c71065f 100644 --- a/protoc-gen-http-swagger/generator/wellknown/schemas.go +++ b/protoc-gen-http-swagger/generator/wellknown/schemas.go @@ -154,7 +154,7 @@ func NewGoogleProtobufDurationSchema() *v3.SchemaOrReference { // // This leads to the regex below limiting range from -315.576,000,000s to 315,576,000,000s // allowing -0.999,999,999s to 0.999,999,999s in the floating precision range. - // That full range cannot be expressed precisly in float64 as demonstrated in + // That full range cannot be expressed precisely in float64 as demonstrated in // the example at https://go.dev/play/p/XNtuhwdyu8Y for your reference. // So the well known type google.protobuf.Duration needs a string. //