From 1ac3db82aca49f765d1c3392d2f0fc1636292f92 Mon Sep 17 00:00:00 2001 From: eleven26 Date: Fri, 15 Jul 2022 13:59:00 +0800 Subject: [PATCH 1/2] fix typo --- context/accept_header.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/context/accept_header.go b/context/accept_header.go index 384062e2..aeaaed09 100644 --- a/context/accept_header.go +++ b/context/accept_header.go @@ -6,19 +6,19 @@ func negotiationMatch(in []string, priorities []string) string { // e.g. // match json: // in: text/html, application/json - // prioritities: application/json + // priorities: application/json // not match: // in: text/html, application/json - // prioritities: text/xml + // priorities: text/xml // match html: // in: text/html, application/json - // prioritities: */* + // priorities: */* // not match: // in: application/json - // prioritities: text/xml + // priorities: text/xml // match json: // in: text/html, application/* - // prioritities: application/json + // priorities: application/json if len(priorities) == 0 { return "" From 6f6bcab533a11c749e328ec31d42643b639a772b Mon Sep 17 00:00:00 2001 From: eleven26 Date: Fri, 15 Jul 2022 16:16:18 +0800 Subject: [PATCH 2/2] fix typo --- context/i18n.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/context/i18n.go b/context/i18n.go index b4a903b3..726cd009 100644 --- a/context/i18n.go +++ b/context/i18n.go @@ -2,7 +2,7 @@ package context import "golang.org/x/text/language" -// I18nReadOnly is the interface which ontains the read-only i18n features. +// I18nReadOnly is the interface which contains the read-only i18n features. // Read the "i18n" package fo details. type I18nReadOnly interface { Tags() []language.Tag @@ -16,8 +16,8 @@ type I18nReadOnly interface { type Locale interface { // Index returns the current locale index from the languages list. Index() int - // Tag returns the full language Tag attached tothis Locale, - // it should be uniue across different Locales. + // Tag returns the full language Tag attached to this Locale, + // it should be unique across different Locales. Tag() *language.Tag // Language should return the exact languagecode of this `Locale` //that the user provided on `New` function.