nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples/extern_methods: revamp as a better teaching example
[nit.git]
/
examples
/
langannot.nit
diff --git
a/examples/langannot.nit
b/examples/langannot.nit
index
7d471f6
..
cd294e1
100644
(file)
--- a/
examples/langannot.nit
+++ b/
examples/langannot.nit
@@
-35,3
+35,9
@@
example
of the language annotation capacities
"""
+
+var s = "example"
+
+print "This superstring {s} rocks"
+
+print "This superstring %1 rocks".format(s)