Fix of typos (#88)
This commit is contained in:
parent
d9454aebb1
commit
dddadc0616
|
@ -52,11 +52,11 @@ is_uuid_v5.call(uuid1).success? # => false
|
|||
> Similar to Ruby's `===` operator
|
||||
|
||||
``` ruby
|
||||
is_natrual = build { case?(1...) }
|
||||
is_natural = build { case?(1...) }
|
||||
|
||||
is_natrual.call(1).success? # => true
|
||||
is_natrual.call(-1).success? # => false
|
||||
is_natrual.call("<string>").success? # => false
|
||||
is_natural.call(1).success? # => true
|
||||
is_natural.call(-1).success? # => false
|
||||
is_natural.call("<string>").success? # => false
|
||||
|
||||
is_integer = build { case?(Integer) }
|
||||
|
||||
|
@ -497,7 +497,7 @@ is_filled.call({}).success? # => false
|
|||
> Returns true when the struct input responds to the given method. Similar to Ruby's `Object#respond_to?` method
|
||||
|
||||
``` ruby
|
||||
has_named = build { attr?(:name) }
|
||||
is_named = build { attr?(:name) }
|
||||
|
||||
class Person < Struct.new(:age, :name)
|
||||
# Logic ...
|
||||
|
|
Loading…
Reference in New Issue