Skip to content

Commit 4f209a4

Browse files
committed
Make nodeToString brief comment clearer (NFC)
IIUC this transforms a node representation of a demangled name to the equivalent string representation. It creates the string itself, and doesn't get the string as a parameter to write into. To me "transform in" was confusing, I think the natural language to use is "transform to".
1 parent 9e9c80e commit 4f209a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/Demangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void mangleIdentifier(const char *data, size_t length,
332332
/// This should always round-trip perfectly with demangleSymbolAsNode.
333333
std::string mangleNode(const NodePointer &root);
334334

335-
/// \brief Transform the node structure in a string.
335+
/// \brief Transform the node structure to a string.
336336
///
337337
/// Typical usage:
338338
/// \code

0 commit comments

Comments
 (0)