Skip to content

Commit 230a5af

Browse files
authored
Improve docs for Prime.include? (#7)
1 parent 55dda6a commit 230a5af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/prime.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ def each(ubound = nil, generator = EratosthenesGenerator.new, &block)
141141
generator.each(&block)
142142
end
143143

144-
# Return true if +obj+ is an Integer an is prime. Also returns
144+
# Returns true if +obj+ is an Integer and is prime. Also returns
145145
# true if +obj+ is a Module that is an ancestor of +Prime+.
146+
# Otherwise returns false.
146147
def include?(obj)
147148
case obj
148149
when Integer

0 commit comments

Comments
 (0)