Merge pull request #2792 from hromojaro/tcl-es

[tcl/en] Fixing typos
This commit is contained in:
Andre Polykanine A.K.A. Menelion Elensúlë 2017-08-24 01:48:53 +03:00 committed by GitHub
commit 7fd4359c27

View File

@ -105,7 +105,7 @@ set greeting $greeting[
incr i incr i
incr i incr i
] ]
puts $greeting ;# The output is "Salutations3" puts $greeting ;# The output is "Salutations3"
# Every word in a command is a string, including the name of the routine, so # Every word in a command is a string, including the name of the routine, so
# substitutions can be used on it as well. Given this variable # substitutions can be used on it as well. Given this variable
@ -422,8 +422,7 @@ eval {set name Neo}
eval [list set greeting "Hello, $name"] eval [list set greeting "Hello, $name"]
# Therefore, when using "eval", , use "list" to build # Therefore, when using "eval", use "list" to build up the desired command:
# up the desired command:
set command {set name} set command {set name}
lappend command {Archibald Sorbisol} lappend command {Archibald Sorbisol}
eval $command eval $command