Skip to content

Commit d6fee65

Browse files
committed
All protocols (should) have semantic requirements
Incorporates feedback from Xiaodi Wu <xiaodi.wu@gmail.com>.
1 parent 627acb3 commit d6fee65

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

TSPL.docc/LanguageGuide/Protocols.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,15 +752,13 @@ a nonfailable initializer or an implicitly unwrapped failable initializer.
752752
```
753753
-->
754754

755-
## Protocols That Have Semantic Requirements
755+
## Protocols That Have Only Semantic Requirements
756756

757757
All of the example protocols above require some methods or properties,
758-
but a protocol doesn't have to include any requirements.
759-
You can also use a protocol to mark types
760-
that satisfy some *semantic* requirements ---
761-
requirements about how values of those types behave
762-
and about operations that they support ---
763-
not just requirements that you express in code.
758+
but a protocol declaration doesn't have to include any requirements.
759+
You can also use a protocol to describe *semantic* requirements ---
760+
that is, requirements about how values of those types behave
761+
and about operations that they support.
764762
<!--
765763
Avoiding the term "marker protocol",
766764
which more specifically refers to @_marker on a protocol.

0 commit comments

Comments
 (0)