Skip to content

Commit 567a78b

Browse files
committed
Match terminology
1 parent d9513a7 commit 567a78b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TSPL.docc/LanguageGuide/Generics.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,8 @@ types also implicitly conform to these common protocol.
19881988
For more information,
19891989
see <doc:Protocols#Implicit-Conformance-to-a-Protocol>.
19901990

1991-
To suppress an implicit protocol conformance requirement,
1991+
To suppress an implicit constraint
1992+
that requires conformance to a given protocol,
19921993
you write the protocol name with a tilde (`~`) in front of it.
19931994
You can read the `~Copyable` constraint as "maybe copyable",
19941995
because values of this type
@@ -2010,7 +2011,7 @@ In the code above,
20102011
the function `f()` implicitly requires `MyType` to be copyable.
20112012
Within the function body,
20122013
the value of `x` is copied to `x1` and `x2` in the assignment.
2013-
In contrast, `g()` suppresses the implicit requirement,
2014+
In contrast, `g()` suppresses the implicit constraint,
20142015
which allows you to pass either a copyable or noncopyable type.
20152016
Within the function body,
20162017
the value of `y` is consumed instead of copied,

0 commit comments

Comments
 (0)