Skip to content

Commit 4cec499

Browse files
Convert int to string (#108)
To avoid the deprecation warning (since 2.13.0)
1 parent 7768cc5 commit 4cec499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/ImperativeProgramming.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ object ImperativeProgramming extends ScalaTutorialSection {
308308
* In Scala there is a kind of `for` loop:
309309
*
310310
* {{{
311-
* for (i <- 1 until 3) { System.out.print(i + " ") }
311+
* for (i <- 1 until 3) { System.out.print(i.toString + " ") }
312312
* }}}
313313
*
314314
* This displays `1 2`.

0 commit comments

Comments
 (0)