nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: add engine `nitg-sg` for --semi-global
[nit.git]
/
tests
/
example_string.nit
diff --git
a/tests/example_string.nit
b/tests/example_string.nit
index
5371270
..
f066eac
100644
(file)
--- a/
tests/example_string.nit
+++ b/
tests/example_string.nit
@@
-27,7
+27,7
@@
printn("The value of a is: ", a, ".\n")
# Second way: Build a string and display it.
# Pro: Eiffel way (rigourous).
# Con: Eiffel way (heavy).
-var s = "The value of a is: "
+var s = new FlatBuffer.from("The value of a is: ")
s.append(a.to_s)
s.append(".\n")
printn(s)