Skip to content

Commit

Permalink
Fix typos in either docs (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolshakov committed Nov 15, 2021
1 parent a16ebaa commit 53deeff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fear/either.rb
Expand Up @@ -72,7 +72,7 @@ module Fear
# Performs the given block if this is a +Right+.
# @yieldparam [any] value
# @yieldreturn [void]
# @return [Option] itself
# @return [Fear::Either] itself
# @example
# Fear.right(17).each do |value|
# puts value
Expand All @@ -95,8 +95,8 @@ module Fear
# Returns the given block applied to the value from this +Right+
# or returns this if this is a +Left+.
# @yieldparam [any] value
# @yieldreturn [Option]
# @return [Option]
# @yieldreturn [Fear::Either]
# @return [Fear::Either]
# @example
# Fear.right(42).flat_map { |v| Fear.right(v/2) } #=> Fear.right(21)
# Fear.left('undefined').flat_map { |v| Fear.right(v/2) } #=> Fear.left('undefined')
Expand Down

0 comments on commit 53deeff

Please sign in to comment.