File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6227,7 +6227,7 @@ bool CoercionAsForceCastFailure::diagnoseAsError() {
6227
6227
6228
6228
bool KeyPathRootTypeMismatchFailure::diagnoseAsError () {
6229
6229
auto locator = getLocator ();
6230
- assert (locator->isKeyPathRoot () && " Expect a key path root" );
6230
+ assert (locator->isKeyPathRoot () && " Expected a key path root" );
6231
6231
6232
6232
auto baseType = getFromType ();
6233
6233
auto rootType = getToType ();
Original file line number Diff line number Diff line change @@ -2027,7 +2027,7 @@ class CoercionAsForceCastFailure final : public ContextualFailure {
2027
2027
// / base that has another type.
2028
2028
// /
2029
2029
// / \code
2030
- // / func f (_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
2030
+ // / func f(_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
2031
2031
// / bar[keyPath: keyPath]
2032
2032
// / }
2033
2033
// / \endcode
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ enum class FixKind : uint8_t {
252
252
// / A warning fix that allows a coercion to perform a force-cast.
253
253
AllowCoercionToForceCast,
254
254
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
256
256
// / root type not convertible to the type of the base instance.
257
257
AllowKeyPathRootTypeMismatch,
258
258
};
@@ -1776,7 +1776,7 @@ class AllowCoercionToForceCast final : public ContextualMismatch {
1776
1776
// / applied to a base instance of another type.
1777
1777
// /
1778
1778
// / \code
1779
- // / func f (_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
1779
+ // / func f(_ bar: Bar , keyPath: KeyPath<Foo, Int> ) {
1780
1780
// / bar[keyPath: keyPath]
1781
1781
// / }
1782
1782
// / \endcode
You can’t perform that action at this time.
0 commit comments