Skip to content

Commit 95c2fcb

Browse files
committed
update README
1 parent 89f4442 commit 95c2fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ try await withThrowingTimeout(seconds: 1.0) { timeout in
4747
try await foo()
4848
timeout.cancelExpiration()
4949
try await bar()
50-
timeout.expire(afer: 0.5)
50+
timeout.expire(after: .now + .seconds(0.5))
5151
try await baz()
5252
}
5353
```

0 commit comments

Comments
 (0)