nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: src: fix null receiver error on useless-signature warning
[nit.git]
/
tests
/
example_string.nit
diff --git
a/tests/example_string.nit
b/tests/example_string.nit
index
106e498
..
b2d800e
100644
(file)
--- a/
tests/example_string.nit
+++ b/
tests/example_string.nit
@@
-18,8
+18,8
@@
# It displays the value of a local variable.
# It exhibs ways to concatenate strings.
# It displays the value of a local variable.
# It exhibs ways to concatenate strings.
-#alt1 import standard
-#alt1 import standard::text::ropes
+#alt1 import core
+#alt1 import core::text::ropes
var a = 10
# First way: Multiple parameters.
var a = 10
# First way: Multiple parameters.
@@
-49,4
+49,4
@@
printn("The value of a is: " + a.to_s + ".\n")
# Fiveth way: Join arrays.
# Pro: Sometime efficient on complex concatenation.
# Con: Crazy.
# Fiveth way: Join arrays.
# Pro: Sometime efficient on complex concatenation.
# Con: Crazy.
-printn(["The value of a is: ", a.to_s, ".\n"].join(""))
+printn(["The value of a is: ", a.to_s, ".\n"].join)