Skip to content

Commit 82865fc

Browse files
authored
Fix typos (#2448)
* Fix typo demostrate --> demonstrate * Fix typo OnProducerMore --> OnProduceMore
1 parent f99f75b commit 82865fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

proposals/0398-variadic-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ The behavior of generic requirements on type parameter packs is mostly unchanged
160160
struct ImposeRepeatedSameType<T1: P, each T2> where repeat T1.A == each T2 {}
161161

162162
// Infers 'repeat each U: P'
163-
func demostrate1<each U>(_: repeat ImposeRequirement<each U>)
163+
func demonstrate1<each U>(_: repeat ImposeRequirement<each U>)
164164

165165
// Infers 'Int: P, V: P, repeat each U: P'
166-
func demostrate2<each U, V>(_: ImposeRepeatedRequirement<Int, V, repeat each U>)
166+
func demonstrate2<each U, V>(_: ImposeRepeatedRequirement<Int, V, repeat each U>)
167167

168168
// Error. Would attempt to infer 'repeat <U' = each U> repeat <V' = each V> U'.A == V' which is not a supported requirement in the language
169169
func demonstrate3a<each U, each V>(_: repeat ImposeRepeatedSameType<each U, repeat each V>))
170170

171171
// Infers 'Int: P, repeat each V: P'
172-
func demostrate3b<each U, each V>(_: repeat (each U, ImposeRepeatedRequirement<Int, repeat each V>))
172+
func demonstrate3b<each U, each V>(_: repeat (each U, ImposeRepeatedRequirement<Int, repeat each V>))
173173
```
174174

175175
### Conformances

proposals/0406-async-stream-backpressure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ the future and we can just default it to the current behaviour.
782782

783783
### Create a custom type for the `Result` of the `onProduceMore` callback
784784

785-
The `onProducerMore` callback takes a `Result<Void, Error>` which is used to
785+
The `onProduceMore` callback takes a `Result<Void, Error>` which is used to
786786
indicate if the producer should produce more or if the asynchronous stream
787787
finished. We could introduce a new type for this but the proposal decided
788788
against it since it effectively is a result type.

0 commit comments

Comments
 (0)