summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk
diff options
context:
space:
mode:
authora_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:57:21 +0000
committera_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:57:21 +0000
commit73a37eb3256862c17b77aa0ee1590933e051b7c3 (patch)
tree9c170e584d31262d1f9030eb402827ad09e5472b /ext/tk/lib/tk
parent98e3c058fa42fdcc2a6e0a24b47786dcaf808ec8 (diff)
Documentation typos
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk')
-rw-r--r--ext/tk/lib/tk/autoload.rb14
-rw-r--r--ext/tk/lib/tk/font.rb2
-rw-r--r--ext/tk/lib/tk/menu.rb2
-rw-r--r--ext/tk/lib/tk/menubar.rb2
-rw-r--r--ext/tk/lib/tk/menuspec.rb4
-rw-r--r--ext/tk/lib/tk/optiondb.rb6
-rw-r--r--ext/tk/lib/tk/root.rb2
-rw-r--r--ext/tk/lib/tk/text.rb2
-rw-r--r--ext/tk/lib/tk/timer.rb2
-rw-r--r--ext/tk/lib/tk/txtwin_abst.rb2
-rw-r--r--ext/tk/lib/tk/wm.rb2
-rw-r--r--ext/tk/lib/tk/xim.rb2
12 files changed, 21 insertions, 21 deletions
diff --git a/ext/tk/lib/tk/autoload.rb b/ext/tk/lib/tk/autoload.rb
index 3d19fb053d..ef82c8944c 100644
--- a/ext/tk/lib/tk/autoload.rb
+++ b/ext/tk/lib/tk/autoload.rb
@@ -499,7 +499,7 @@ class << Tk
replace_topobj(sym, obj)
else # current_obj != topalias_defined?(sym)
- # Maybe current_obj is defined by user. --> OWNER[sym] = faise
+ # Maybe current_obj is defined by user. --> OWNER[sym] = false
# Keep Object::sym.
@TOPLEVEL_ALIAS_OWNER[sym] = false
@TOPLEVEL_ALIAS_TABLE[target][sym] = obj
@@ -542,7 +542,7 @@ class << Tk
else # NOT topalias_defined?(sym)
# Nobody controls ALIAS[sym].
- # At leaset, current widget set doesn't control ALIAS[sym].
+ # At least, current widget set doesn't control ALIAS[sym].
# Keep Object::sym (even if it is not defined)
# Keep OWNER[sym].
@TOPLEVEL_ALIAS_TABLE[target][sym] = obj
@@ -610,20 +610,20 @@ class << Tk
if cur_obj = topobj_defined?(sym)
if ! cur_obj.kind_of?(String) && (cur_alias = topalias_defined?(sym))
if cur_alias.kind_of?(String)
- # Mayby, user replaced Object::sym.
+ # Maybe, user replaced Object::sym.
# Make Object::sym out of control.
@TOPLEVEL_ALIAS_OWNER[sym] = false
elsif cur_obj == cur_alias
- # Possibley, defined normally. Backup it
+ # Possibly, defined normally. Backup it
@TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias
else
- # Mayby, user replaced Object::sym.
+ # Maybe, user replaced Object::sym.
# Make Object::sym out of control.
@TOPLEVEL_ALIAS_OWNER[sym] = false
end
end
else
- # Mayby, user replaced Object::sym.
+ # Maybe, user replaced Object::sym.
# Make Object::sym out of control.
@TOPLEVEL_ALIAS_OWNER[sym] = false
end
@@ -631,7 +631,7 @@ class << Tk
when nil
# Object::sym is out of control.
if (cur_alias = topalias_defined?(sym)) && ! cur_alias.kind_of?(String)
- # Possibley, defined normally. Backup it.
+ # Possibly, defined normally. Backup it.
@TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias
end
else
diff --git a/ext/tk/lib/tk/font.rb b/ext/tk/lib/tk/font.rb
index 7a2a549849..4c23f73ef9 100644
--- a/ext/tk/lib/tk/font.rb
+++ b/ext/tk/lib/tk/font.rb
@@ -1787,7 +1787,7 @@ module TkFont::CoreMethods
tk_call('font', 'configure', font,
"-#{slot}", value, '-pointadjust', padjust)
elsif JAPANIZED_TK && (slot == 'family' || slot == :family)
- # coumpund font?
+ # compound font?
begin
compound = tk_split_simplelist(tk_call('font', 'configure',
font, '-compound'))
diff --git a/ext/tk/lib/tk/menu.rb b/ext/tk/lib/tk/menu.rb
index 16347a98ea..a466a11012 100644
--- a/ext/tk/lib/tk/menu.rb
+++ b/ext/tk/lib/tk/menu.rb
@@ -525,7 +525,7 @@ Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::SysMenu_System,
class Tk::SysMenu_Apple<Tk::Menu
- # for Machintosh
+ # for Macintosh
include Tk::SystemMenu
SYSMENU_NAME = 'apple'
end
diff --git a/ext/tk/lib/tk/menubar.rb b/ext/tk/lib/tk/menubar.rb
index 17cb4477c9..e27fc4914c 100644
--- a/ext/tk/lib/tk/menubar.rb
+++ b/ext/tk/lib/tk/menubar.rb
@@ -80,7 +80,7 @@
# 'font'=>'Helvetia 12 bold')
# menubar.pack('side'=>'top', 'fill'=>'x')
-# See tk/menuspce.rb about the format of the menu_spec
+# See tk/menuspec.rb about the format of the menu_spec
# To use add_menu, configuration must be done by calling configure after
# adding all menus by add_menu, not by the constructor arguments.
diff --git a/ext/tk/lib/tk/menuspec.rb b/ext/tk/lib/tk/menuspec.rb
index 2de62242ff..8039676e69 100644
--- a/ext/tk/lib/tk/menuspec.rb
+++ b/ext/tk/lib/tk/menuspec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: false
#
# tk/menuspec.rb
-# Hidethoshi NAGAI (nagai@ai.kyutech.ac.jp)
+# Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
# based on tkmenubar.rb :
# Copyright (C) 1998 maeda shugo. All rights reserved.
@@ -30,7 +30,7 @@
# [ entry_info, entry_info, ... ]
#
#
-# underline, accelerator, and configs are optional pearameters.
+# underline, accelerator, and configs are optional parameters.
# Hashes are OK instead of Arrays. Then the entry type ('command',
# 'checkbutton', 'radiobutton' or 'cascade') is given by 'type' key
# (e.g. :type=>'cascade'). When type is 'cascade', an array of menu_info
diff --git a/ext/tk/lib/tk/optiondb.rb b/ext/tk/lib/tk/optiondb.rb
index b27a5e5721..ced8a111e4 100644
--- a/ext/tk/lib/tk/optiondb.rb
+++ b/ext/tk/lib/tk/optiondb.rb
@@ -59,7 +59,7 @@ module TkOptionDB
when /\\$/ # continue
cline.chop!
next
- when /^\s*(!|#)/ # coment
+ when /^\s*(!|#)/ # comment
cline = ''
next
when /^([^:]+):(.*)$/
@@ -103,7 +103,7 @@ module TkOptionDB
when /\\$/ # continue
cline.chop!
next
- when /^\s*!/ # coment
+ when /^\s*!/ # comment
cline = ''
next
when /^([^:]+):\s(.*)$/
@@ -341,7 +341,7 @@ module TkOptionDB
# define new proc class :
# If you want to modify the new class or create a new subclass,
# you must do such operation in the block parameter.
- # Because the created class is flozen after evaluating the block.
+ # Because the created class is frozen after evaluating the block.
def new_proc_class(klass, func, safe = 4, add = false, parent = nil, &b)
new_klass = __create_new_class(klass, func, safe, add, parent)
new_klass.class_eval(&b) if block_given?
diff --git a/ext/tk/lib/tk/root.rb b/ext/tk/lib/tk/root.rb
index 3fb7c472d3..b92732fd7d 100644
--- a/ext/tk/lib/tk/root.rb
+++ b/ext/tk/lib/tk/root.rb
@@ -32,7 +32,7 @@ class Tk::Root<TkWindow
}
}
- if keys # wm commands ( for backward comaptibility )
+ if keys # wm commands ( for backward compatibility )
keys.each{|k,v|
if v.kind_of? Array
root.__send__(k,*v)
diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb
index fc4f112933..616c3ae89c 100644
--- a/ext/tk/lib/tk/text.rb
+++ b/ext/tk/lib/tk/text.rb
@@ -1463,7 +1463,7 @@ class Tk::Text<TkTextWin
val, i = _retrieve_braced_text(str, i)
result.push val
else
- # text which may contain backslahes
+ # text which may contain backslashes
val, i = _retrieve_backslashed_text(str, i)
result.push val
end
diff --git a/ext/tk/lib/tk/timer.rb b/ext/tk/lib/tk/timer.rb
index 794463aab1..c1457e274e 100644
--- a/ext/tk/lib/tk/timer.rb
+++ b/ext/tk/lib/tk/timer.rb
@@ -182,7 +182,7 @@ class TkTimer
@cancel_on_exception = DEFAULT_IGNORE_EXCEPTIONS
# Unless @cancel_on_exception, Ruby/Tk shows an error dialog box when
- # an excepsion is raised on TkTimer callback procedure.
+ # an exception is raised on TkTimer callback procedure.
# If @cancel_on_exception is an array of exception classes and the raised
# exception is included in the array, Ruby/Tk cancels executing TkTimer
# callback procedures silently (TkTimer#cancel is called and no dialog is
diff --git a/ext/tk/lib/tk/txtwin_abst.rb b/ext/tk/lib/tk/txtwin_abst.rb
index 3c9beef6c4..32986d4788 100644
--- a/ext/tk/lib/tk/txtwin_abst.rb
+++ b/ext/tk/lib/tk/txtwin_abst.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: false
#
-# tk/txtwin_abst.rb : TkTextWin abstruct class
+# tk/txtwin_abst.rb : TkTextWin abstract class
#
require 'tk'
diff --git a/ext/tk/lib/tk/wm.rb b/ext/tk/lib/tk/wm.rb
index 114ba24276..5aa67e37b6 100644
--- a/ext/tk/lib/tk/wm.rb
+++ b/ext/tk/lib/tk/wm.rb
@@ -311,7 +311,7 @@ module Tk
# --------------------------------------------------------------
# In the future release, I want to support to embed the 'win'
# into the container which has window-id 'use-id'.
- # It may give users frexibility on controlling their GUI.
+ # It may give users flexibility on controlling their GUI.
# However, it may be difficult for current Tcl/Tk (Tcl/Tk8.5.1),
# because it seems to require to modify Tcl/Tk's source code.
# --------------------------------------------------------------
diff --git a/ext/tk/lib/tk/xim.rb b/ext/tk/lib/tk/xim.rb
index 7e77591b45..08c7d0c0b7 100644
--- a/ext/tk/lib/tk/xim.rb
+++ b/ext/tk/lib/tk/xim.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: false
#
-# tk/xim.rb : control imput_method
+# tk/xim.rb : control input_method
#
require 'tk'