mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/rational.rb (Integer::gcd): small typo fix. [ruby-core:07395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									c519ca9500
								
							
						
					
					
						commit
						80914afa47
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Mon Feb 20 12:27:53 2006  Kent Sibilev  <ksruby@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* lib/rational.rb (Integer::gcd): small typo fix.
 | 
			
		||||
	  [ruby-core:07395]
 | 
			
		||||
 | 
			
		||||
Mon Feb 20 01:05:27 2006  Yukihiro Matsumoto  <matz@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* lib/rational.rb (Integer::gcd): replaced by gcd4 in
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -435,7 +435,7 @@ class Integer
 | 
			
		|||
  #
 | 
			
		||||
  # The result is positive, no matter the sign of the arguments.
 | 
			
		||||
  #
 | 
			
		||||
  def gcd(n)
 | 
			
		||||
  def gcd(other)
 | 
			
		||||
    min = self.abs
 | 
			
		||||
    max = other.abs
 | 
			
		||||
    while min > 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue