Skip to content

Commit

Permalink
Avoid jpath in example
Browse files Browse the repository at this point in the history
[Cherry-picked dd711ee]
  • Loading branch information
som-snytt authored and WojciechMazur committed Jul 10, 2024
1 parent 4296d2d commit 1df4690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_docs/reference/metaprogramming/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def macroImpl()(quotes: Quotes): Expr[Unit] =
import quotes.reflect.*
val pos = Position.ofMacroExpansion

val path = pos.sourceFile.jpath.toString
val path = pos.sourceFile.path
val start = pos.start
val end = pos.end
val startLine = pos.startLine
Expand Down
2 changes: 1 addition & 1 deletion docs/_spec/TODOreference/metaprogramming/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def macroImpl()(quotes: Quotes): Expr[Unit] =
import quotes.reflect.*
val pos = Position.ofMacroExpansion

val path = pos.sourceFile.jpath.toString
val path = pos.sourceFile.path
val start = pos.start
val end = pos.end
val startLine = pos.startLine
Expand Down

0 comments on commit 1df4690

Please sign in to comment.