nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: lib/config: fix doc
[nit.git]
/
examples
/
rosettacode
/
balanced_brackets.nit
diff --git
a/examples/rosettacode/balanced_brackets.nit
b/examples/rosettacode/balanced_brackets.nit
index
a1ae476
..
acf50a0
100644
(file)
--- a/
examples/rosettacode/balanced_brackets.nit
+++ b/
examples/rosettacode/balanced_brackets.nit
@@
-34,6
+34,6
@@
if args.not_empty then n = args.first.to_i
for i in [0..10[ do
var a = (['[', ']'] * n)
a.shuffle
- var b = a.join("")
+ var b = a.join
if is_balanced(b) then print "{b} is well-balanced" else print "{b} is not well-balanced"
end