Skip to content

Commit 6ada79c

Browse files
Merge pull request #9399 from ShapelessCat/fix-example-code-in-docs
Fix a function name in example code of docs
2 parents aa6b172 + e158644 commit 6ada79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/type-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Let's define a `Config` type, and two functions using it:
196196
trait Config
197197
// ...
198198
def compute(i: Int)(config: Config): String = ???
199-
def layout(str: String)(config: Config): Unit = ???
199+
def show(str: String)(config: Config): Unit = ???
200200
```
201201

202202
We may want to combine `compute` and `show` into a single function, accepting a `Config` as parameter, and showing the result of the computation, and we'd like to use

0 commit comments

Comments
 (0)