summaryrefslogtreecommitdiff
path: root/test/files/pos/sudoku.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/sudoku.scala')
-rw-r--r--test/files/pos/sudoku.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/sudoku.scala b/test/files/pos/sudoku.scala
index 8f42e56264..9875b22cfd 100644
--- a/test/files/pos/sudoku.scala
+++ b/test/files/pos/sudoku.scala
@@ -2,7 +2,7 @@ object SudokuSolver extends Application {
// The board is represented by an array of strings (arrays of chars),
// held in a global variable m. The program begins by reading 9 lines
// of input to fill the board
- var m: Array[Array[Char]] = List.tabulate(9, (x: Int) => readLine.toArray).toArray
+ var m: Array[Array[Char]] = Array.tabulate(9)((x: Int) => readLine.toArray)
// For printing m, a method print is defined
def print = { println(""); m map (carr => println(new String(carr))) }