1 files changed, 2 insertions, 2 deletions
diff --git a/develop/log_contexts.html b/develop/log_contexts.html
index ee064e8394..06e84de758 100644
--- a/develop/log_contexts.html
+++ b/develop/log_contexts.html
@@ -191,7 +191,7 @@ and add it to each log record.</p>
<p>Logcontexts are also used for CPU and database accounting, so that we
can track which requests were responsible for high CPU use or database
activity.</p>
-<p>The <code>synapse.logging.context</code> module provides a facilities for managing
+<p>The <code>synapse.logging.context</code> module provides facilities for managing
the current log context (as well as providing the <code>LoggingContextFilter</code>
class).</p>
<p>Asynchronous functions make the whole thing complicated, so this document describes
@@ -468,7 +468,7 @@ and the awaitable chain is now orphaned, and will be garbage-collected at
some point. Note that <code>await_something_interesting</code> is a coroutine,
which Python implements as a generator function. When Python
garbage-collects generator functions, it gives them a chance to
-clean up by making the <code>async</code> (or <code>yield</code>) raise a <code>GeneratorExit</code>
+clean up by making the <code>await</code> (or <code>yield</code>) raise a <code>GeneratorExit</code>
exception. In our case, that means that the <code>__exit__</code> handler of
<code>PreserveLoggingContext</code> will carefully restore the request context, but
there is now nothing waiting for its return, so the request context is
|