From 4929ace56c0f69e5e05095977539fde43ba5f10a Mon Sep 17 00:00:00 2001 From: liupengfei Date: Wed, 29 Jun 2022 17:57:09 +0800 Subject: [PATCH 1/2] fix typo --- baggage/baggage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/baggage/baggage.go b/baggage/baggage.go index 9f82a2507b8..c9ef5faa269 100644 --- a/baggage/baggage.go +++ b/baggage/baggage.go @@ -157,7 +157,7 @@ func (p Property) Key() string { return p.key } -// Value returns the Property value. Additionally a boolean value is returned +// Value returns the Property value. Additionally, a boolean value is returned // indicating if the returned value is the empty if the Property has a value // that is empty or if the value is not set. func (p Property) Value() (string, bool) { @@ -392,7 +392,7 @@ func New(members ...Member) (Baggage, error) { } } - // Check member numbers after deduplicating. + // Check member numbers after duplicating. if len(b) > maxMembers { return Baggage{}, errMemberNumber } @@ -454,7 +454,7 @@ func Parse(bStr string) (Baggage, error) { func (b Baggage) Member(key string) Member { v, ok := b.list[key] if !ok { - // We do not need to worry about distiguising between the situation + // We do not need to worry about distinguishing between the situation // where a zero-valued Member is included in the Baggage because a // zero-valued Member is invalid according to the W3C Baggage // specification (it has an empty key). From eb22e9d51c0dfeddf1a2239f9c3fe780a0044523 Mon Sep 17 00:00:00 2001 From: Petrie Date: Thu, 30 Jun 2022 00:39:46 +0800 Subject: [PATCH 2/2] spell fix --- baggage/baggage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baggage/baggage.go b/baggage/baggage.go index c9ef5faa269..eba180e04f8 100644 --- a/baggage/baggage.go +++ b/baggage/baggage.go @@ -392,7 +392,7 @@ func New(members ...Member) (Baggage, error) { } } - // Check member numbers after duplicating. + // Check member numbers after deduplication. if len(b) > maxMembers { return Baggage{}, errMemberNumber }