diff --git a/docs/source/reference-lowlevel.rst b/docs/source/reference-lowlevel.rst index 36b37e3e37..ebd0f57c03 100644 --- a/docs/source/reference-lowlevel.rst +++ b/docs/source/reference-lowlevel.rst @@ -455,7 +455,7 @@ this does serve to illustrate the basic structure of the async def acquire(self): while self._held: - task = trio.current_task() + task = trio.lowlevel.current_task() self._blocked_tasks.append(task) def abort_fn(_): self._blocked_tasks.remove(task)