[#1320] English Check

Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
Elizaveta Chichindaeva 2022-04-21 14:28:05 +03:00 committed by LeL
parent d99800ee93
commit cc7a723d77
182 changed files with 802 additions and 802 deletions

View file

@ -13,7 +13,7 @@ import (
var errInvalidRecord = errors.New("invalid table record")
// IterateAll scans table record one-by-one, parses UN/LOCODE record
// IterateAll scans a table record one-by-one, parses a UN/LOCODE record
// from it and passes it to f.
//
// Returns f's errors directly.
@ -64,8 +64,8 @@ type subDivRecord struct {
name string
}
// SubDivName scans table record to in-memory table (once),
// and returns subdivision name on country and subdivision codes match.
// SubDivName scans a table record to an in-memory table (once),
// and returns the subdivision name of the country and the subdivision codes match.
//
// Returns locodedb.ErrSubDivNotFound if no entry matches.
func (t *Table) SubDivName(countryCode *locodedb.CountryCode, code string) (string, error) {

View file

@ -19,7 +19,7 @@ func defaultOpts() *options {
}
}
// WithExtraPaths returns option to add extra paths
// WithExtraPaths returns an option to add extra paths
// to UN/LOCODE tables in csv format.
func WithExtraPaths(ps ...string) Option {
return func(o *options) {