Skip to content

Commit

Permalink
Merge pull request #1265 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
Kriechi authored Nov 5, 2021
2 parents 799b1ea + 139c313 commit 53feb0e
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/advanced-usage.rst
Original file line number Diff line number Diff line change
@@ -152,7 +152,7 @@ For this reason, it is possible to consume only a subset of the data available
when you call :meth:`data_to_send <h2.connection.H2Connection.data_to_send>`.
However, once you have pulled the data out of the ``H2Connection`` internal
buffer, it is *not* possible to put it back on again. For that reason, it is
adviseable that you confirm how much space is available in the OS buffer before
advisable that you confirm how much space is available in the OS buffer before
sending.

Alternatively, use tools made available by your framework. For example, the
2 changes: 1 addition & 1 deletion examples/fragments/client_upgrade_fragment.py
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ def main():
"""
The client upgrade flow.
"""
# Step 1: Establish the TCP connecton.
# Step 1: Establish the TCP connection.
connection = establish_tcp_connection()

# Step 2: Create H2 Connection object, put it in upgrade mode, and get the
2 changes: 1 addition & 1 deletion examples/fragments/server_upgrade_fragment.py
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ def main():
"""
The server upgrade flow.
"""
# Step 1: Establish the TCP connecton.
# Step 1: Establish the TCP connection.
connection = establish_tcp_connection()

# Step 2: Read the response. We expect this to request an upgrade.
2 changes: 1 addition & 1 deletion test/test_basic_logic.py
Original file line number Diff line number Diff line change
@@ -1302,7 +1302,7 @@ def test_cannot_reset_nonexistent_stream(self, frame_factory):
def test_basic_sending_ping_frame_logic(self, frame_factory):
"""
Sending ping frames serializes a ping frame on stream 0 with
approriate opaque data.
appropriate opaque data.
"""
c = h2.connection.H2Connection(config=self.server_config)
c.receive_data(frame_factory.preamble())
2 changes: 1 addition & 1 deletion test/test_flow_control_window.py
Original file line number Diff line number Diff line change
@@ -923,7 +923,7 @@ def test_connection_only_empty(self, frame_factory, increment):
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
def test_mixing_update_forms(self, frame_factory, increment):
"""
If the user mixes ackowledging data with manually incrementing windows,
If the user mixes acknowledging data with manually incrementing windows,
we still keep track of what's going on.
"""
# We need to refresh the encoder because hypothesis has a problem with

0 comments on commit 53feb0e

Please sign in to comment.