From f7a24baa2b06724d4be007bff1869086dc2db327 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 7 Jun 2021 09:59:09 +0200 Subject: [PATCH] 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] = '{ "" } // 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. --- docs/docs/reference/metaprogramming/macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/metaprogramming/macros.md b/docs/docs/reference/metaprogramming/macros.md index 5b77a3e5a9d0..3719994402a1 100644 --- a/docs/docs/reference/metaprogramming/macros.md +++ b/docs/docs/reference/metaprogramming/macros.md @@ -40,7 +40,7 @@ def assertImpl(expr: Expr[Boolean])(using Quotes) = '{ } def showExpr(expr: Expr[Boolean])(using Quotes): Expr[String] = - '{ "" } // Better implementation later in this document + '{ [actual implementation later in this document] } ``` If `e` is an expression, then `'{e}` represents the typed