Skip to content

Commit 0e10385

Browse files
committed
Use sentences for error descriptions
1 parent 7eeccb6 commit 0e10385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TSPL.docc/ReferenceManual/GenericParametersAndArguments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ struct AnotherStruct<let x: Int, T, each U> {
125125
let b: SomeStruct<x> // OK: another integer generic parameter
126126

127127
static let c = 42
128-
let d: SomeStruct<c> // Error: constant
128+
let d: SomeStruct<c> // Error: Can't use a constant.
129129

130-
let e: SomeStruct<T> // Error: type generic parameter
131-
let f: SomeStruct<U> // Error: pack generic parameter
130+
let e: SomeStruct<T> // Error: Can't use a generic type parameter.
131+
let f: SomeStruct<U> // Error: Can't use a parameter pack.
132132
}
133133
```
134134

0 commit comments

Comments
 (0)