Skip to content

Commit aa97c4e

Browse files
committed
[SwiftSyntaxParser] Clarify doc-comment about the order of the nodes that the parser provides
1 parent 7d56a19 commit aa97c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift-c/SyntaxParser/SwiftSyntaxParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ swiftparse_parser_set_node_lookup(swiftparse_parser_t,
182182
/// Parse the provided \p source and invoke the callback that was set via
183183
/// \c swiftparse_parser_set_node_handler as each syntax node is parsed.
184184
///
185-
/// Syntax nodes are provided in a top-bottom, depth-first order. For example,
185+
/// Syntax nodes are provided in a depth-first, source order. For example,
186186
/// token nodes will be provided ahead of the syntax node whose layout they are
187187
/// a part of. The memory that \c swiftparse_syntax_node_t points to is only
188188
/// valid to access for the duration of the \c swiftparse_node_handler_t block

0 commit comments

Comments
 (0)