Skip to content

Commit fa6faa1

Browse files
doc fix for from_trio
1 parent 12c46c1 commit fa6faa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ tinyio.from_asyncio tinyio.from_trio
321321

322322
---
323323

324-
- `tinyio.from_trio(async_fn, *args)`
324+
- `tinyio.from_trio(coro)`
325325

326326
This converts an `trio` coroutine into a `tinyio` coroutine.
327327

@@ -332,7 +332,7 @@ tinyio.from_asyncio tinyio.from_trio
332332
return x + 1
333333

334334
def foo(x):
335-
y = yield tinyio.from_trio(add_one, x)
335+
y = yield tinyio.from_trio(add_one(x))
336336
return y
337337

338338
tinyio.Loop().run(foo(3))

0 commit comments

Comments
 (0)