From 2f8ff5662daadf008a943cccdbbf1a5bfe140efb Mon Sep 17 00:00:00 2001 From: deferdeter <166976362+deferdeter@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:15:13 +0800 Subject: [PATCH] chore: fix some struct names in comments (#2974) Signed-off-by: deferdeter --- helpers.go | 2 +- path.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.go b/helpers.go index d119858eb0..cb03ff8273 100644 --- a/helpers.go +++ b/helpers.go @@ -26,7 +26,7 @@ import ( "github.com/valyala/fasthttp" ) -// acceptType is a struct that holds the parsed value of an Accept header +// acceptedType is a struct that holds the parsed value of an Accept header // along with quality, specificity, parameters, and order. // Used for sorting accept headers. type acceptedType struct { diff --git a/path.go b/path.go index 72c440c0f3..2f4396125d 100644 --- a/path.go +++ b/path.go @@ -25,7 +25,7 @@ type routeParser struct { plusCount int // number of plus parameters, used internally to give the plus parameter its number } -// paramsSeg holds the segment metadata +// routeSegment holds the segment metadata type routeSegment struct { // const information Const string // constant part of the route