Skip to content

Commit 63d62a6

Browse files
committed
Update the reference for nested protocols.
1 parent 4a296e8 commit 63d62a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,8 @@ as discussed in <doc:Declarations#Extension-Declaration>.
22732273
## Protocol Declaration
22742274

22752275
A *protocol declaration* introduces a named protocol type into your program.
2276-
Protocol declarations are declared at global scope
2276+
Protocol declarations are declared either at global scope
2277+
or nested inside a nongeneric type or nongeneric function,
22772278
using the `protocol` keyword and have the following form:
22782279

22792280
```swift

0 commit comments

Comments
 (0)