From 5517c74940a3b2300fd5dba1b12b36aae57ee807 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Fri, 7 Feb 2020 07:20:00 +0100 Subject: [PATCH] doc(inline): improve log.then description --- docs/docs/reference/metaprogramming/inline.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/reference/metaprogramming/inline.md b/docs/docs/reference/metaprogramming/inline.md index c9bad79d5a28..fe57a7479377 100644 --- a/docs/docs/reference/metaprogramming/inline.md +++ b/docs/docs/reference/metaprogramming/inline.md @@ -89,10 +89,10 @@ def factorial(n: BigInt): BigInt = { } ``` -Note, that the by-value parameter is evaluated only once, per the usual Scala +Note, that the by-value parameter `msg` is evaluated only once, per the usual Scala semantics, by binding the value and reusing the `msg` through the body of -`factorial`. Also, note the special handling of setting to the private var -`indent` by generating the setter method `def inline$indent_=`. +`factorial`. Also, note the special handling of the assignment to the private var +`indent`. It is achieved by generating a setter method `def inline$indent_=` and calling it instead. ### Recursive Inline Methods