Skip to content

Commit 88e6ffe

Browse files
committed
Change indentation.md to reflect no colon in extensions
1 parent a128dab commit 88e6ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/reference/other-new-features/indentation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ There are two rules:
5959
An indentation region can start
6060

6161
- after the condition of an `if-else`, or
62+
- after the leading parameters of an `extension`, or
6263
- after a ": at end of line" token (see below)
6364
- after one of the following tokens:
6465
```
@@ -120,7 +121,7 @@ enum Color:
120121
type T = A:
121122
def f: Int
122123

123-
given [T] with Ord[T] as Ord[List[T]]:
124+
given [T](using Ord[T]) as Ord[List[T]]:
124125
def compare(x: List[T], y: List[T]) = ???
125126

126127
extension (xs: List[Int])

0 commit comments

Comments
 (0)