Skip to content

Commit 7372a25

Browse files
authored
Foundation: fix typo in Publishers+Timer.swift (swiftlang#31966)
`addSubsriber` -> `addSubscriber`
1 parent 79bed6c commit 7372a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Darwin/Foundation/Publishers+Timer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ extension Timer {
126126
lock.cleanupLock()
127127
}
128128

129-
func addSubsriber<S: Subscriber>(_ sub: S)
129+
func addSubscriber<S: Subscriber>(_ sub: S)
130130
where
131131
S.Failure == Failure,
132132
S.Input == Output
@@ -195,7 +195,7 @@ extension Timer {
195195
}
196196

197197
public func receive<S: Subscriber>(subscriber: S) where Failure == S.Failure, Output == S.Input {
198-
routingSubscription.addSubsriber(subscriber)
198+
routingSubscription.addSubscriber(subscriber)
199199
}
200200

201201
public func connect() -> Cancellable {

0 commit comments

Comments
 (0)