From e158644fea0cb5ac3c80eab2b1a99160e79c7a30 Mon Sep 17 00:00:00 2001 From: "Lan, Jian" Date: Mon, 20 Jul 2020 15:48:08 -0700 Subject: [PATCH] Fix a function name in example code of docs This "layout" function was referenced as "show" --- docs/docs/reference/contextual/type-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/contextual/type-classes.md b/docs/docs/reference/contextual/type-classes.md index dfd5c32b9833..412ef7834103 100644 --- a/docs/docs/reference/contextual/type-classes.md +++ b/docs/docs/reference/contextual/type-classes.md @@ -196,7 +196,7 @@ Let's define a `Config` type, and two functions using it: trait Config // ... def compute(i: Int)(config: Config): String = ??? -def layout(str: String)(config: Config): Unit = ??? +def show(str: String)(config: Config): Unit = ??? ``` 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