Skip to content

Commit 5dc5a7a

Browse files
authored
Merge pull request #4472 from rbonvall/patch-1
Add missing colons
2 parents 6f6816d + 291950a commit 5dc5a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/principled-meta-programming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ To avoid clutter, the Scala implementation tries to convert any phase-incorrect
177177
reference to a type `T` to a type-splice, by rewriting `T` to `~implicitly[Type[T]]`.
178178
For instance, the user-level definition of `reflect`:
179179

180-
def reflect[T: Type, U](f: Expr[T] => Expr[U]) Expr[T => U] =
180+
def reflect[T: Type, U](f: Expr[T] => Expr[U]): Expr[T => U] =
181181
’{ (x: T) => ~f(’(x)) }
182182

183183
would be rewritten to
184184

185-
def reflect[T: Type, U](f: Expr[T] => Expr[U]) Expr[T => U] =
185+
def reflect[T: Type, U](f: Expr[T] => Expr[U]): Expr[T => U] =
186186
’{ (x: ~implicitly[Type[T]]) => ~f(’(x)) }
187187

188188
The `implicitly` query succeeds because there is an implicit value of

0 commit comments

Comments
 (0)