@@ -137,7 +137,7 @@ But now we're using virtual time, so the call to ``await
137137trio.sleep(1) `` takes *exactly * 1 virtual second, and the ``== `` test
138138will pass every time. Before, we had to wait around for the test to
139139complete; now, it completes essentially instantaneously. (Try it!)
140- And, while here our example is super simple, it's integration with
140+ And, while here our example is super simple, its integration with
141141Trio's core scheduling logic allows this to work for arbitrarily
142142complex programs (as long as they aren't interacting with the outside
143143world).
@@ -288,7 +288,7 @@ server. Sometimes this will work fine. But it takes a little while for
288288the server to start up and be ready to accept connections – so other
289289times, randomly, our connection attempt will happen too quickly, and
290290error out. After all – ``nursery.start_soon `` only promises that the
291- task will be started *soon *, not that it's actually happened. So this
291+ task will be started *soon *, not that it has actually happened. So this
292292test will be flaky, and flaky tests are the worst.
293293
294294Fortunately, Trio makes this easy to solve, by switching to using
@@ -338,7 +338,7 @@ Well, there's no way to predict the port ahead of time. But after
338338:func: `~trio.serve_tcp ` has opened a port, it can check and see what
339339it got. So we need some way to pass this data back out of
340340:func: `~trio.serve_tcp `. Fortunately, ``nursery.start `` handles this
341- too: it lets the task pass out a piece of data after it's started. And
341+ too: it lets the task pass out a piece of data after it has started. And
342342it just so happens that what :func: `~trio.serve_tcp ` passes out is a
343343list of :class: `~trio.SocketListener ` objects. And there's a handy
344344function called :func: `trio.testing.open_stream_to_socket_listener `
0 commit comments