ruby-changes:32372
From: charliesome <ko1@a...>
Date: Sat, 28 Dec 2013 17:25:42 +0900 (JST)
Subject: [ruby-changes:32372] charliesome:r44451 (trunk): * benchmark/bm_so_meteor_contest.rb: [DOC] Fix a few typos
charliesome 2013-12-28 17:25:28 +0900 (Sat, 28 Dec 2013) New Revision: 44451 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44451 Log: * benchmark/bm_so_meteor_contest.rb: [DOC] Fix a few typos * ext/fiddle/lib/fiddle/import.rb: ditto * ext/psych/lib/psych.rb: ditto * ext/psych/lib/psych/nodes/sequence.rb: ditto * ext/tk/lib/multi-tk.rb: ditto * ext/tk/lib/tcltk.rb: ditto Closes GH-490 Modified files: trunk/ChangeLog trunk/benchmark/bm_so_meteor_contest.rb trunk/ext/fiddle/lib/fiddle/import.rb trunk/ext/psych/lib/psych/nodes/sequence.rb trunk/ext/psych/lib/psych.rb trunk/ext/tk/lib/multi-tk.rb trunk/ext/tk/lib/tcltk.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 44450) +++ ChangeLog (revision 44451) @@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Dec 28 17:24:00 2013 DV Suresh <e@d...> + + * benchmark/bm_so_meteor_contest.rb: [DOC] Fix a few typos + * ext/fiddle/lib/fiddle/import.rb: ditto + * ext/psych/lib/psych.rb: ditto + * ext/psych/lib/psych/nodes/sequence.rb: ditto + * ext/tk/lib/multi-tk.rb: ditto + * ext/tk/lib/tcltk.rb: ditto + Sat Dec 28 00:42:37 2013 Nobuyoshi Nakada <nobu@r...> * parse.y (local_push_gen, local_pop_gen): save cmdarg_stack to Index: ext/tk/lib/tcltk.rb =================================================================== --- ext/tk/lib/tcltk.rb (revision 44450) +++ ext/tk/lib/tcltk.rb (revision 44451) @@ -325,7 +325,7 @@ class TclTkCallback < TclTkObject https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/tcltk.rb#L325 TclTk._addcallback(self) end - # to_eval(): retuens string representation for @ip._eval_args + # to_eval(): returns string representation for @ip._eval_args def to_eval() if @arg # bind replaces %s before calling ruby_fmt, so %%s is used @@ -349,7 +349,7 @@ class TclTkImage < TclTkCommand https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/tcltk.rb#L349 # initialize(interp, t, *args): # generating image is done by TclTkImage.new() - # destrying is done by image delete (inconsistent, sigh) + # destroying is done by image delete (inconsistent, sigh) # interp: interpreter(TclTkInterpreter) # t: image type (photo, bitmap, etc.) # *args: command argument Index: ext/tk/lib/multi-tk.rb =================================================================== --- ext/tk/lib/multi-tk.rb (revision 44450) +++ ext/tk/lib/multi-tk.rb (revision 44451) @@ -148,7 +148,7 @@ class MultiTkIp https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/multi-tk.rb#L148 end def delete(idx, &blk) - # if gets an entry, is permited to delete + # if gets an entry, is permitted to delete if self[idx] @tbl.delete(idx) elsif blk Index: ext/psych/lib/psych/nodes/sequence.rb =================================================================== --- ext/psych/lib/psych/nodes/sequence.rb (revision 44450) +++ ext/psych/lib/psych/nodes/sequence.rb (revision 44451) @@ -56,7 +56,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/nodes/sequence.rb#L56 # Is this sequence started implicitly? attr_accessor :implicit - # The sequece style used + # The sequence style used attr_accessor :style ### Index: ext/psych/lib/psych.rb =================================================================== --- ext/psych/lib/psych.rb (revision 44450) +++ ext/psych/lib/psych.rb (revision 44451) @@ -135,7 +135,7 @@ require 'psych/handlers/document_stream' https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych.rb#L135 # ==== Exception handling # # begin -# # The second argument chnages only the exception contents +# # The second argument changes only the exception contents # Psych.parse("--- `", "file.txt") # rescue Psych::SyntaxError => ex # ex.file # => 'file.txt' Index: ext/fiddle/lib/fiddle/import.rb =================================================================== --- ext/fiddle/lib/fiddle/import.rb (revision 44450) +++ ext/fiddle/lib/fiddle/import.rb (revision 44451) @@ -63,7 +63,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ext/fiddle/lib/fiddle/import.rb#L63 extend Importer # Creates an array of handlers for the given +libs+, can be an instance of - # Fiddle::Handle, Fiddle::Importer, or will create a new istance of + # Fiddle::Handle, Fiddle::Importer, or will create a new instance of # Fiddle::Handle using Fiddle.dlopen # # Raises a DLError if the library cannot be loaded. Index: benchmark/bm_so_meteor_contest.rb =================================================================== --- benchmark/bm_so_meteor_contest.rb (revision 44450) +++ benchmark/bm_so_meteor_contest.rb (revision 44451) @@ -32,7 +32,7 @@ class Rotation https://github.com/ruby/ruby/blob/trunk/benchmark/bm_so_meteor_contest.rb#L32 @start_masks = Array.new(60) # create the rotational masks by placing the base mask at the location and seeing if - # 1) it overlaps the boundries and 2) it produces a prunable board. if either of these + # 1) it overlaps the boundaries and 2) it produces a prunable board. if either of these # is true the piece cannot be placed 0.upto(59) do | offset | mask = is_even(offset) ? (@even_mask << offset) : (@odd_mask << offset) @@ -328,7 +328,7 @@ def prunable( board, location, slotting https://github.com/ruby/ruby/blob/trunk/benchmark/bm_so_meteor_contest.rb#L328 collectors = [] # loop across the rows (location / 6).to_i.upto(9) do | row_on | - # obtain a set of regions representing the bits of the curent row. + # obtain a set of regions representing the bits of the current row. regions = $regions[(board >> (row_on * 6)) & 0b11111] converter = $converter[row_on] @@ -370,7 +370,7 @@ def prunable( board, location, slotting https://github.com/ruby/ruby/blob/trunk/benchmark/bm_so_meteor_contest.rb#L370 end # check the existing collectors, if any collector overlapped no bits in the region its [2] value will - # be zero. The size of any such reaason is tested if it is not a muliple of five true is returned since + # be zero. The size of any such reaason is tested if it is not a multiple of five true is returned since # the board is prunable. if it is a multiple of five it is removed. # Collector that are still active have a new adjacent value [0] set based n the matched bits # and have [2] cleared out for the next cycle. @@ -382,7 +382,7 @@ def prunable( board, location, slotting https://github.com/ruby/ruby/blob/trunk/benchmark/bm_so_meteor_contest.rb#L382 collectors[collector_num] = nil else # if a collector matches all bits in the row then we can return unprunable early for the - # follwing reasons: + # following reasons: # 1) there can be no more unavailable bits bince we fill from the top left downward # 2) all previous regions have been closed or joined so only this region can fail # 3) this region must be good since there can never be only 1 region that is nuot @@ -526,7 +526,7 @@ def save( board_string) https://github.com/ruby/ruby/blob/trunk/benchmark/bm_so_meteor_contest.rb#L526 @boards_found += 1 # the exit motif is a time saver. Ideally the function should return, but those tests - # take noticable time (performance). + # take noticeable time (performance). if (@boards_found == @stop_count) then print_results exit(0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/