Skip to content

Commit 721dd77

Browse files
[NFC] Minor comment adjustments
1 parent 094ffd6 commit 721dd77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6227,7 +6227,7 @@ bool CoercionAsForceCastFailure::diagnoseAsError() {
62276227

62286228
bool KeyPathRootTypeMismatchFailure::diagnoseAsError() {
62296229
auto locator = getLocator();
6230-
assert(locator->isKeyPathRoot() && "Expect a key path root");
6230+
assert(locator->isKeyPathRoot() && "Expected a key path root");
62316231

62326232
auto baseType = getFromType();
62336233
auto rootType = getToType();

lib/Sema/CSDiagnostics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ class CoercionAsForceCastFailure final : public ContextualFailure {
20272027
/// base that has another type.
20282028
///
20292029
/// \code
2030-
/// func f (_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
2030+
/// func f(_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
20312031
/// bar[keyPath: keyPath]
20322032
/// }
20332033
/// \endcode

lib/Sema/CSFix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ enum class FixKind : uint8_t {
252252
/// A warning fix that allows a coercion to perform a force-cast.
253253
AllowCoercionToForceCast,
254254

255-
/// Allow key path root type mismatch when applying a key path with a
255+
/// Allow key path root type mismatch when applying a key path that has a
256256
/// root type not convertible to the type of the base instance.
257257
AllowKeyPathRootTypeMismatch,
258258
};
@@ -1776,7 +1776,7 @@ class AllowCoercionToForceCast final : public ContextualMismatch {
17761776
/// applied to a base instance of another type.
17771777
///
17781778
/// \code
1779-
/// func f (_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
1779+
/// func f(_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
17801780
/// bar[keyPath: keyPath]
17811781
/// }
17821782
/// \endcode

0 commit comments

Comments
 (0)