Skip to content

Commit

Permalink
fix some misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
antham committed Apr 22, 2017
1 parent b68124a commit b56e612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func Map(f func(interface{}) interface{}, l List) List {
return Consf(mapperFunc, Map(f, next()))
}

// MapM applies f to each element then evaluates each funciton in sequence
// MapM applies f to each element then evaluates each function in sequence
func MapM(f func(interface{}), l List) {
adapter := func(i interface{}) interface{} {
f(i)
Expand Down
4 changes: 2 additions & 2 deletions maybe/maybe.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ type Maybe struct {
internal interface{}
}

// AndThen provides the monadic implementaiton of AndThen
// AndThen provides the monadic implementation of AndThen
func (m Maybe) AndThen(f func(interface{}) monad.Monad) monad.Monad {
if asJust, ok := m.internal.(just); ok {
return f(asJust.Val)
}
return m
}

// LogAndThen provides the monadic implementaiton of LogAndThen
// LogAndThen provides the monadic implementation of LogAndThen
func (m Maybe) LogAndThen(f func(interface{}) monad.Monad, logger func(interface{})) monad.Monad {
logger(m)
if asJust, ok := m.internal.(just); ok {
Expand Down

0 comments on commit b56e612

Please sign in to comment.