Skip to content

Commit 2dc279f

Browse files
committed
[Docs] Minor edits to GenericsManifesto.md.
Address comments by @CodaFi regarding capitalization.
1 parent b3f8147 commit 2dc279f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/GenericsManifesto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ One explicit way to allow such operations in a type-safe manner is to introduce
758758

759759
```Swift
760760
if let storedInE1 = e1 openas T { // T is the type of storedInE1, a copy of the value stored in e1
761-
if let storedInE2 = e2 as? T { // does e2 have type T? if so, copy its value to storedInE2
762-
if storedInE1 == storedInE2 { ... } // okay: storedInT1 and storedInE2 are both of type T, which we know is Equatable
761+
if let storedInE2 = e2 as? T { // Does e2 have type T? If so, copy its value to storedInE2
762+
if storedInE1 == storedInE2 { ... } // Okay: storedInT1 and storedInE2 are both of type T, which we know is Equatable
763763
}
764764
}
765765
```

0 commit comments

Comments
 (0)