Skip to content

Commit 9c0f648

Browse files
committed
Fix typo
1 parent a866d02 commit 9c0f648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/experimental/typeclasses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ The old syntax with multiple `:` should be phased out over time.
179179

180180
So far, a context bound for a type `M` gets a synthesized fresh name. It would be much more useful if it got the name of the constrained type instead, translated to be a term name. This means our `reduce` method over monoids would not even need an `as` binding. We could simply formulate it as follows:
181181
```
182-
def reduce[M: Monoid](xs: List[M] =
182+
def reduce[M: Monoid](xs: List[M]) =
183183
xs.foldLeft(M.unit)(_ `combine` _)
184184
```
185185

0 commit comments

Comments
 (0)