Skip to content

Commit 0620928

Browse files
committed
Add missing def in doc
1 parent af9c96e commit 0620928

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ fail(indentity("foo")) // error: failed on: indentity("foo")
411411
The `memo` method is used to avoid repeated evaluation of subcomputations.
412412
Example:
413413
```
414+
type T = ...
414415
class C(x: T) {
415416
def costly(x: T): Int = ???
416417
def f(y: Int) = memo(costly(x)) * y

0 commit comments

Comments
 (0)