Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehuc committed Nov 29, 2023
1 parent 685e13a commit 770fb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion propagation/trace_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func upperHex(v string) bool {
func extractPart(dst []byte, h *string, n int) bool {
part, left, _ := strings.Cut(*h, delimiter)
*h = left
// hex.Decode support Upper hex, but we doesn't want it, so need exclude
// hex.Decode decodes unsupported upper-case characters, so exclude explicitly.
if len(part) != n || upperHex(part) {
return false
}
Expand Down

0 comments on commit 770fb29

Please sign in to comment.