diff --git a/src/spec/doc/style-guide.adoc b/src/spec/doc/style-guide.adoc index 72462e36e4d..d7eb9c5a95f 100644 --- a/src/spec/doc/style-guide.adoc +++ b/src/spec/doc/style-guide.adoc @@ -391,7 +391,7 @@ For simple variables, or `variable.property`, you can even drop the curly braces throw new Exception("Unable to convert resource: $resource") ---- -You can even lazily evaluate those expressions using a closure notation with `${-> resource }`. +You can even lazily evaluate those expressions using a closure notation with `${\-> resource }`. When the GString will be coerced to a String, it'll evaluate the closure and get the `toString()` representation of the return value. Example: