Skip to content

Commit 53feb0e

Browse files
authored
Merge pull request #1265 from kianmeng/fix-typos
Fix typos
2 parents 799b1ea + 139c313 commit 53feb0e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/source/advanced-usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ For this reason, it is possible to consume only a subset of the data available
152152
when you call :meth:`data_to_send <h2.connection.H2Connection.data_to_send>`.
153153
However, once you have pulled the data out of the ``H2Connection`` internal
154154
buffer, it is *not* possible to put it back on again. For that reason, it is
155-
adviseable that you confirm how much space is available in the OS buffer before
155+
advisable that you confirm how much space is available in the OS buffer before
156156
sending.
157157

158158
Alternatively, use tools made available by your framework. For example, the

examples/fragments/client_upgrade_fragment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
"""
7878
The client upgrade flow.
7979
"""
80-
# Step 1: Establish the TCP connecton.
80+
# Step 1: Establish the TCP connection.
8181
connection = establish_tcp_connection()
8282

8383
# Step 2: Create H2 Connection object, put it in upgrade mode, and get the

examples/fragments/server_upgrade_fragment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def main():
7474
"""
7575
The server upgrade flow.
7676
"""
77-
# Step 1: Establish the TCP connecton.
77+
# Step 1: Establish the TCP connection.
7878
connection = establish_tcp_connection()
7979

8080
# Step 2: Read the response. We expect this to request an upgrade.

test/test_basic_logic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ def test_cannot_reset_nonexistent_stream(self, frame_factory):
13021302
def test_basic_sending_ping_frame_logic(self, frame_factory):
13031303
"""
13041304
Sending ping frames serializes a ping frame on stream 0 with
1305-
approriate opaque data.
1305+
appropriate opaque data.
13061306
"""
13071307
c = h2.connection.H2Connection(config=self.server_config)
13081308
c.receive_data(frame_factory.preamble())

test/test_flow_control_window.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def test_connection_only_empty(self, frame_factory, increment):
923923
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
924924
def test_mixing_update_forms(self, frame_factory, increment):
925925
"""
926-
If the user mixes ackowledging data with manually incrementing windows,
926+
If the user mixes acknowledging data with manually incrementing windows,
927927
we still keep track of what's going on.
928928
"""
929929
# We need to refresh the encoder because hypothesis has a problem with

0 commit comments

Comments
 (0)