diff options
author | Steve Bennett <steveb@workware.net.au> | 2016-02-11 10:17:47 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-02-11 10:17:47 +1000 |
commit | d56bd19304e9361f125aaec93d8f6cf8b8191592 (patch) | |
tree | e94d3c60e65f8b48de7e4244f2a7fe8e02ca355b | |
parent | 2fdf40d33a3d5019b05580c2d9d7d69392188e2b (diff) | |
download | jimtcl-d56bd19304e9361f125aaec93d8f6cf8b8191592.zip jimtcl-d56bd19304e9361f125aaec93d8f6cf8b8191592.tar.gz jimtcl-d56bd19304e9361f125aaec93d8f6cf8b8191592.tar.bz2 |
docs: fix more typos
Some identified by frgm
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | README.namespaces | 4 | ||||
-rw-r--r-- | README.oo | 6 | ||||
-rw-r--r-- | README.sqlite | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/README.namespaces b/README.namespaces index e08d68e..ef50769 100644 --- a/README.namespaces +++ b/README.namespaces @@ -67,7 +67,7 @@ Variable resolution The variable command in Jim Tcl has the same syntax as Tcl, but is closer in behaviour to the global command. The variable command creates a link from a local variable to a namespace variable, possibly initialising it. -For example, the following procedure uses 'variable' to initialse and access myvar. +For example, the following procedure uses 'variable' to initialise and access myvar. proc ::test::myproc {} { variable myvar 4 @@ -89,7 +89,7 @@ And similarly, the following will only access local variables set x 3 namespace eval ::test { - # This will incremement a local variable, not ::x + # This will increment a local variable, not ::x incr x # This will also increment a local variable incr abc::def @@ -44,7 +44,7 @@ are prefixed with 'Account' and a space. PREDEFINED CLASS METHODS ------------------------ -Decaring a class pre-defines a number of "class" methods. i.e. those which don't +Declaring a class pre-defines a number of "class" methods. i.e. those which don't require an object and simply return or manipulate properties of the class. These are: new ?instancevars?:: @@ -84,7 +84,7 @@ For example: PREDEFINED OBJECT METHODS ------------------------- -Decaring a class pre-defines a number of "object" methods. i.e. those which operate +Declaring a class pre-defines a number of "object" methods. i.e. those which operate on a specific object. destroy:: @@ -122,7 +122,7 @@ For example: DECLARING METHODS ----------------- -In addition to the predefined methods, new methods may be decared, or existing +In addition to the predefined methods, new methods may be declared, or existing methods redefined with the class method, method. Declaring a method is very similar to defining a proc, and the arglist diff --git a/README.sqlite b/README.sqlite index dde7de5..9fb8348 100644 --- a/README.sqlite +++ b/README.sqlite @@ -39,7 +39,7 @@ The query method has the following signature: The sql query may contain occurrences of "%s" that are substituted in the actual query with the following arguments, quoted in order -to make sure that the query is correct even if this arguments contain +to make sure that the query is correct even if these arguments contain "'" characters. So for example it is possible to write: . $db query "SELECT * from tbl1 WHERE one='%s'" hello! @@ -120,7 +120,7 @@ the NULL value as a different string: . $db query -null <<NULL>> "SELECT * from tbl1" {one hello! two 10} {one goodbye two 20} {one <<NULL>> two 30} -This way if the emtpy string has some semantical value for your +This way if the empty string has some semantical value for your dataset you can change it. Finding the ID of the last inserted row @@ -135,7 +135,7 @@ Number of rows changed by the most recent query ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is also very simple, there is just to use the 'changes' method -without arugments. +without arguments. . $db changes 5 |