diff options
-rw-r--r-- | lib/prime.rb | 2 | ||||
-rw-r--r-- | test/test_prime.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/prime.rb b/lib/prime.rb index 86db1957a3..2cd22da3a8 100644 --- a/lib/prime.rb +++ b/lib/prime.rb @@ -419,7 +419,7 @@ class Prime end end - # Internal use. An implementation of eratosthenes' sieve + # Internal use. An implementation of Eratosthenes' sieve class EratosthenesSieve include Singleton diff --git a/test/test_prime.rb b/test/test_prime.rb index fe847eb832..7ff07eeb6a 100644 --- a/test/test_prime.rb +++ b/test/test_prime.rb @@ -189,6 +189,7 @@ class TestPrime < Test::Unit::TestCase ensure class << Integer alias_method :sqrt, :org_sqrt + remove_method :org_sqrt end end |