Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce031b5

Browse files
authored
updated identifiers for multiline string and dictionary variables
updated identifiers for multiline string variables and dictionary/map variable in scala-for-python-devs.md
1 parent 9ce1101 commit ce031b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_overviews/scala3-book/scala-for-python-devs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ These examples demonstrate how to create variables in Python and Scala.
137137
<td class="python-block">
138138
<code>x = 1
139139
<br>x = "Hi"
140-
<br>x = """foo
140+
<br>y = """foo
141141
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bar
142142
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baz"""</code>
143143
</td>
@@ -146,7 +146,7 @@ These examples demonstrate how to create variables in Python and Scala.
146146
<td class="scala-block">
147147
<code>val x = 1
148148
<br>val x = "Hi"
149-
<br>val x = """foo
149+
<br>val y = """foo
150150
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bar
151151
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baz"""</code>
152152
</td>
@@ -186,7 +186,7 @@ These examples demonstrate how to create variables in Python and Scala.
186186
</tr>
187187
<tr>
188188
<td class="scala-block">
189-
<code>val movies = Map(
189+
<code>val x = Map(
190190
<br>&nbsp; "Toy Story" -&gt; 8.3,
191191
<br>&nbsp; "Forrest Gump" -&gt; 8.8,
192192
<br>&nbsp; "Cloud Atlas" -&gt; 7.4

0 commit comments

Comments
 (0)