Skip to content

Commit aded22c

Browse files
benluobishabosha
andauthored
Update _overviews/scala3-book/methods-most.md
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
1 parent 5f4a2d8 commit aded22c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/methods-most.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ As an example of a real-world multiline method, this `getStackTraceAsString` met
189189

190190
```scala
191191
def getStackTraceAsString(t: Throwable): String = {
192-
val sw = StringWriter()
192+
val sw = new StringWriter()
193193
t.printStackTrace(new PrintWriter(sw))
194194
sw.toString
195195
}

0 commit comments

Comments
 (0)