Skip to content

Commit

Permalink
Change indentation.md to reflect no colon in extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 4, 2020
1 parent a128dab commit 88e6ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/reference/other-new-features/indentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ There are two rules:
An indentation region can start

- after the condition of an `if-else`, or
- after the leading parameters of an `extension`, or
- after a ": at end of line" token (see below)
- after one of the following tokens:
```
Expand Down Expand Up @@ -120,7 +121,7 @@ enum Color:
type T = A:
def f: Int

given [T] with Ord[T] as Ord[List[T]]:
given [T](using Ord[T]) as Ord[List[T]]:
def compare(x: List[T], y: List[T]) = ???

extension (xs: List[Int])
Expand Down

0 comments on commit 88e6ffe

Please sign in to comment.