mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix typos of previous docs PR
In #2612 I made two typos (extra ,, and copy-pasted same line of code instead of showing two different ones), fixing them.
This commit is contained in:
		
							parent
							
								
									c1bd1bf272
								
							
						
					
					
						commit
						a4b99f9764
					
				
				
				Notes:
				
					git
				
				2019-12-23 08:37:20 +09:00 
				
			
			
			
		
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@ wish to limit the scope of rescued exceptions:
 | 
			
		|||
    # ...
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
The same is true for, +class+, +module+, and +block+:
 | 
			
		||||
The same is true for a +class+, +module+, and +block+:
 | 
			
		||||
 | 
			
		||||
  [0, 1, 2].map do |i|
 | 
			
		||||
    10 / i
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -316,7 +316,7 @@ proc_entry_ptr(VALUE proc_entry)
 | 
			
		|||
 *   some_method(a.to_enum)
 | 
			
		||||
 *
 | 
			
		||||
 *   # String#split in block form is more memory-effective:
 | 
			
		||||
 *   very_large_string.to_enum(:split, "|") { |chunk| return chunk if chunk.include?('DATE') }
 | 
			
		||||
 *   very_large_string.split("|") { |chunk| return chunk if chunk.include?('DATE') }
 | 
			
		||||
 *   # This could be rewritten more idiomatically with to_enum:
 | 
			
		||||
 *   very_large_string.to_enum(:split, "|").lazy.grep(/DATE/).first
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue