Skip to content

Commit 82ef3c4

Browse files
Nero5023facebook-github-bot
authored andcommitted
Fix typo in "how to handle errors" doc
Summary: Fix typo in "how to handle errors" doc join -> join_all Reviewed By: JakobDegen Differential Revision: D68369429 fbshipit-source-id: d89082a15dd692c564f8756ace37621c11c478cc
1 parent 631be42 commit 82ef3c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/bxl/how_tos/how_to_handle_errors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ lazy_ops = [
6262
#### For collective error handling (stop on first error):
6363

6464
```python
65-
result = ctx.lazy.join(lazy_ops).catch().resolve()
65+
result = ctx.lazy.join_all(lazy_ops).catch().resolve()
6666
```
6767

6868
The Return type is `Result[list[bxl.AnalysisResult]]`
6969

7070
#### For individual error handling per operation:
7171

7272
```python
73-
result = ctx.lazy.join([op.catch() for op in lazy_ops]).resolve()
73+
result = ctx.lazy.join_all([op.catch() for op in lazy_ops]).resolve()
7474
```
7575

7676
The Return type is `list[Result[bxl.AnalysisResult]]`

0 commit comments

Comments
 (0)