mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
tcl: fix error in no-braces example (#2274)
This commit is contained in:
parent
4e118150a2
commit
3684cae8c7
@ -253,7 +253,7 @@ proc greet {greeting name} {
|
||||
# As noted earlier, braces do not construct a code block. Every value, even
|
||||
# the third argument of the "proc" command, is a string. The previous command
|
||||
# rewritten to not use braces at all:
|
||||
proc greet greeting\ name return\ \"Hello,\ \$name!
|
||||
proc greet greeting\ name return\ \"\$greeting,\ \$name!\"
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user