Skip to content

Commit f33fcb9

Browse files
committed
Tweak pathTo comment in NavigateAST
1 parent 66905e7 commit f33fcb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/ast/NavigateAST.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ object NavigateAST {
6363
pathTo(span, List(ctx.compilationUnit.untpdTree))
6464

6565

66-
/** The reverse path from node `from` to the node that closest encloses `span`,
66+
/** The reverse path from any node in `from` to the node that closest encloses `span`,
6767
* or `Nil` if no such path exists. If a non-empty path is returned it starts with
68-
* the node closest enclosing `span` and ends with `from`.
68+
* the node closest enclosing `span` and ends with one of the nodes in `from`.
6969
*
7070
* @param skipZeroExtent If true, skip over zero-extent nodes in the search. These nodes
7171
* do not correspond to code the user wrote since their start and

0 commit comments

Comments
 (0)