Skip to content

Commit 4754b42

Browse files
amartini51Chuck Toporek
andcommitted
Incorporate edits.
Co-authored-by: Chuck Toporek <[email protected]>
1 parent bd69a4c commit 4754b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TSPL.docc/LanguageGuide/Protocols.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ a nonfailable initializer or an implicitly unwrapped failable initializer.
755755
## Protocols as Types
756756

757757
Protocols don't actually implement any functionality themselves.
758-
Nonetheless, you can use a protocol as a type in your code.
758+
Regardless, you can use a protocol as a type in your code.
759759

760760
The most common way to use a protocol as a type
761761
is to use a protocol as a generic constraint.
@@ -781,8 +781,8 @@ Code with a boxed protocol type
781781
works with any type, chosen at runtime, that conforms to the protocol.
782782
To support this runtime flexibility,
783783
Swift adds a level of indirection when necessary ---
784-
this indirection is known as a *box*,
785-
and it has a performance cost.
784+
known as a *box*,
785+
which has a performance cost.
786786
Because of this flexibility,
787787
Swift doesn't know the underlying type at compile time,
788788
which means you can access only the members

0 commit comments

Comments
 (0)