Skip to content

Commit 217c343

Browse files
committed
[Diagnostics] NFC: Fix name shadowing diagnostic comment to refer to max
1 parent ec95397 commit 217c343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSDiagnostics.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1947,9 +1947,9 @@ class UnableToInferProtocolLiteralType final : public FailureDiagnostic {
19471947
/// }
19481948
/// ```
19491949
///
1950-
/// Here `min` refers to a global function `min<T>(_: T, _: T)` in `Swift`
1950+
/// Here `max` refers to a global function `max<T>(_: T, _: T)` in `Swift`
19511951
/// module and can only be accessed by adding `Swift.` to it, because `Sequence`
1952-
/// has a member named `min` which accepts a single argument.
1952+
/// has a member named `max` which accepts a single argument.
19531953
class MissingQuialifierInMemberRefFailure final : public FailureDiagnostic {
19541954
public:
19551955
MissingQuialifierInMemberRefFailure(ConstraintSystem &cs,

0 commit comments

Comments
 (0)