Skip to content

Commit f7a24ba

Browse files
committed
macros.md: Fix htmlized variant of first source code example
Confusingly, the last part of the first source code example would appear as def showExpr(expr: Expr[Boolean])(using Quotes): Expr[String] = '{ " " } in the htmlized version of the markdown documentation source. Which reads as follows: def showExpr(expr: Expr[Boolean])(using Quotes): Expr[String] = '{ "<some source code>" } // Better implementation later in this document This seems to be cause by the usage of angle brackets. Also note that the code comment does not appear in the htmlized output.
1 parent f1252d8 commit f7a24ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def assertImpl(expr: Expr[Boolean])(using Quotes) = '{
4040
}
4141

4242
def showExpr(expr: Expr[Boolean])(using Quotes): Expr[String] =
43-
'{ "<some source code>" } // Better implementation later in this document
43+
'{ [actual implementation later in this document] }
4444
```
4545

4646
If `e` is an expression, then `'{e}` represents the typed

0 commit comments

Comments
 (0)