diff --git a/cmd/std.txt b/cmd/std.txt index 2ee10da..057a235 100644 --- a/cmd/std.txt +++ b/cmd/std.txt @@ -29,10 +29,10 @@ func (c *Currency) MinorUnits() int { return c.minorUnits } // pence := 100.00 * currency.GBP.Factor() func (c *Currency) Factor() int { return c.factor } -// GetCurrency returns a currency struct if the provided +// Get returns a currency struct if the provided // code is contained within the valid codes. Otherwise // an error will be returned -func GetCurrency(code string) (*Currency, error) { +func Get(code string) (*Currency, error) { if Valid(code) { val, ok := currencies[code] if ok { diff --git a/std.go b/std.go index 160d462..927306a 100644 --- a/std.go +++ b/std.go @@ -29,10 +29,10 @@ func (c *Currency) MinorUnits() int { return c.minorUnits } // pence := 100.00 * currency.GBP.Factor() func (c *Currency) Factor() int { return c.factor } -// GetCurrency returns a currency struct if the provided +// Get returns a currency struct if the provided // code is contained within the valid codes. Otherwise // an error will be returned -func GetCurrency(code string) (*Currency, error) { +func Get(code string) (*Currency, error) { if Valid(code) { val, ok := currencies[code] if ok {