forked from TrueCloudLab/frostfs-node
[#1320] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
parent
d99800ee93
commit
cc7a723d77
182 changed files with 802 additions and 802 deletions
|
@ -6,12 +6,12 @@ import (
|
|||
locodecolumn "github.com/nspcc-dev/neofs-node/pkg/util/locode/column"
|
||||
)
|
||||
|
||||
// LocationCode represents location code for
|
||||
// storage in the NeoFS location database.
|
||||
// LocationCode represents a location code for
|
||||
// the storage in the NeoFS location database.
|
||||
type LocationCode locodecolumn.LocationCode
|
||||
|
||||
// LocationCodeFromString parses string UN/LOCODE location code
|
||||
// and returns LocationCode.
|
||||
// LocationCodeFromString parses a string UN/LOCODE location code
|
||||
// and returns a LocationCode.
|
||||
func LocationCodeFromString(s string) (*LocationCode, error) {
|
||||
lc, err := locodecolumn.LocationCodeFromString(s)
|
||||
if err != nil {
|
||||
|
@ -21,7 +21,7 @@ func LocationCodeFromString(s string) (*LocationCode, error) {
|
|||
return LocationFromColumn(lc)
|
||||
}
|
||||
|
||||
// LocationFromColumn converts UN/LOCODE country code to LocationCode.
|
||||
// LocationFromColumn converts a UN/LOCODE country code to a LocationCode.
|
||||
func LocationFromColumn(cc *locodecolumn.LocationCode) (*LocationCode, error) {
|
||||
return (*LocationCode)(cc), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue