Skip to content

Commit dcdd2b8

Browse files
committed
Keep the docs watch-loop snippet ASCII
The docs-example checker pipes snippets to ruff in the platform encoding; an em-dash in a code comment arrives as invalid UTF-8 on Windows runners.
1 parent eb6a578 commit dcdd2b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/handlers/subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def watch(client: Client, uri: str) -> None:
107107
async for _event in sub:
108108
await client.read_resource(uri)
109109
except SubscriptionLost:
110-
continue # transport dropped re-listen
110+
continue # transport dropped - re-listen
111111
else:
112112
break # the server ended it deliberately
113113
```

0 commit comments

Comments
 (0)