Skip to content

Commit 84ef96c

Browse files
committed
fix: fix syntax issue with arguments
1 parent b6d27d4 commit 84ef96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/ca-given-using-clauses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def renderWebsite(path: String, c: Config): String =
2626
def renderWidget(items: List[String], c: Config): String = ???
2727

2828
val config = Config(8080, "docs.scala-lang.org")
29-
renderWebsite("/home")(config)
29+
renderWebsite("/home", config)
3030
```
3131
Let us assume that the configuration does not change throughout most of our code base.
3232
Passing `c` to each and every method call (like `renderWidget`) becomes very tedious and makes our program more difficult to read, since we need to ignore the `c` argument.

0 commit comments

Comments
 (0)