Skip to content

Commit 28c96ad

Browse files
authored
doc(dep-fun-type): typos
1 parent 3e68e93 commit 28c96ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docs/reference/new-types/dependent-function-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ trait Entry { type Key; val key: Key }
1111
def extractKey(e: Entry): e.Key = e.key // a dependent method
1212
val extractor: (e: Entry) => e.Key = extractKey // a dependent function value
1313
// ║ ⇓ ⇓ ⇓ ⇓ ⇓ ⇓ ⇓ ║
14-
// ║ Dependent
15-
// ║ Function Type
16-
// ╚═══════════════════
14+
// ║ Dependent ║
15+
// ║ Function Type ║
16+
// ╚═══════════════╝
1717
```
1818
Scala already has _dependent methods_, i.e. methods where the result
1919
type refers to some of the parameters of the method. Method
20-
`extractKey` is an example. Its result type, `e.Key` refers its
20+
`extractKey` is an example. Its result type, `e.Key` refers to its
2121
parameter `e` (we also say, `e.Key` _depends_ on `e`). But so far it
2222
was not possible to turn such methods into function values, so that
2323
they can be passed as parameters to other functions, or returned as

0 commit comments

Comments
 (0)