summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-01-11 01:12:52 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-01-11 01:12:52 +0100
commit8c8c48e36acbc09495757540c8c43acdb9ec9515 (patch)
tree2fedc47e709a868281a670de3ef4ec1c1dc2ec18
parent98b2c7799655b41de0ab07ef918493451220733d (diff)
parent451b943a01276cf972b05c7f317752f3411a614c (diff)
downloadNim-8c8c48e36acbc09495757540c8c43acdb9ec9515.tar.gz
Merge pull request #1924 from daniel-kullmann/doc-fix1
doc/tut2.txt: clarified usage of static/dynamic binding
-rw-r--r--doc/tut2.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt
index 30aef02b2..b9fff93b9 100644
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -304,8 +304,8 @@ Procedures always use static dispatch. For dynamic dispatch replace the
   echo eval(newPlus(newPlus(newLit(1), newLit(2)), newLit(4)))
 
 Note that in the example the constructors ``newLit`` and ``newPlus`` are procs
-because they should use static binding, but ``eval`` is a method because it
-requires dynamic binding.
+because it makes more sense for them to use static binding, but ``eval`` is a
+method because it requires dynamic binding.
 
 In a multi-method all parameters that have an object type are used for the
 dispatching:
ef='#n134'>134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218