Skip to content

Commit 12023fc

Browse files
som-snyttWojciechMazur
authored andcommitted
Avoid jpath in example
[Cherry-picked dd711ee]
1 parent 38242ee commit 12023fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_docs/reference/metaprogramming/reflection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def macroImpl()(quotes: Quotes): Expr[Unit] =
8282
import quotes.reflect.*
8383
val pos = Position.ofMacroExpansion
8484

85-
val path = pos.sourceFile.jpath.toString
85+
val path = pos.sourceFile.path
8686
val start = pos.start
8787
val end = pos.end
8888
val startLine = pos.startLine

docs/_spec/TODOreference/metaprogramming/reflection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def macroImpl()(quotes: Quotes): Expr[Unit] =
8282
import quotes.reflect.*
8383
val pos = Position.ofMacroExpansion
8484

85-
val path = pos.sourceFile.jpath.toString
85+
val path = pos.sourceFile.path
8686
val start = pos.start
8787
val end = pos.end
8888
val startLine = pos.startLine

0 commit comments

Comments
 (0)