Skip to content

Commit 0c497c9

Browse files
committed
AST: Fix overly suspenseful comment
1 parent 87871d7 commit 0c497c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/swift/AST/Type.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,11 @@ class Type {
282282
/// Transform the given type by recursively applying the user-provided
283283
/// function to each node.
284284
///
285-
/// If the function returns \c None, the transform operation will
286-
///
287285
/// \param fn A function object which accepts a type pointer and returns a
288286
/// transformed type, a null type (which will propagate out the null type),
289287
/// or None (to indicate that the transform operation should recursively
290288
/// transform the children). The function object should use \c dyn_cast rather
291-
/// than \c getAs when the transform is intended to preserve sugar
289+
/// than \c getAs when the transform is intended to preserve sugar.
292290
///
293291
/// \returns the result of transforming the type.
294292
Type transformRec(llvm::function_ref<Optional<Type>(TypeBase *)> fn) const;

0 commit comments

Comments
 (0)