Skip to content

Commit

Permalink
rename GetCurrency -> Get
Browse files Browse the repository at this point in the history
  • Loading branch information
ladydascalie committed Jul 16, 2018
1 parent e70d072 commit dbb2553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/std.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions std.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dbb2553

Please sign in to comment.