Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1265

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/advanced-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/fragments/client_upgrade_fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/fragments/server_upgrade_fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/test_basic_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion test/test_flow_control_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down