Skip to content

Commit 83752a4

Browse files
fix
1 parent 3d2a546 commit 83752a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ array.map(fn => try fn())
240240
// yields Result
241241
yield try something()
242242

243-
// Result<T> where T is return type of iterator().next()
243+
// Result<T> where T is the argument of iterator().next(T) but also captures
244+
// any error thrown by something()
244245
try yield something()
245246

246247
// Result<Awaited<ReturnType<typeof something>>>

0 commit comments

Comments
 (0)