Skip to content

Commit 5f4a2d8

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

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
@@ -190,7 +190,7 @@ As an example of a real-world multiline method, this `getStackTraceAsString` met
190190
```scala
191191
def getStackTraceAsString(t: Throwable): String = {
192192
val sw = StringWriter()
193-
t.printStackTrace(PrintWriter(sw))
193+
t.printStackTrace(new PrintWriter(sw))
194194
sw.toString
195195
}
196196
```

0 commit comments

Comments
 (0)