Skip to content

Commit baff05d

Browse files
authored
Merge pull request #2080 from SourceCodeBot/patch-2
fix: fix syntax issue with arguments
2 parents f7f2d81 + 84ef96c commit baff05d

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)