diff --git a/docs/source/advanced-usage.rst b/docs/source/advanced-usage.rst index 5d752392a..d238c48b6 100644 --- a/docs/source/advanced-usage.rst +++ b/docs/source/advanced-usage.rst @@ -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 `. 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 diff --git a/examples/fragments/client_upgrade_fragment.py b/examples/fragments/client_upgrade_fragment.py index f45c002df..024110a32 100644 --- a/examples/fragments/client_upgrade_fragment.py +++ b/examples/fragments/client_upgrade_fragment.py @@ -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 diff --git a/examples/fragments/server_upgrade_fragment.py b/examples/fragments/server_upgrade_fragment.py index 7e8b1f0ee..d3ec7a113 100644 --- a/examples/fragments/server_upgrade_fragment.py +++ b/examples/fragments/server_upgrade_fragment.py @@ -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. diff --git a/test/test_basic_logic.py b/test/test_basic_logic.py index 8c8f3b7db..6826b8840 100644 --- a/test/test_basic_logic.py +++ b/test/test_basic_logic.py @@ -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()) diff --git a/test/test_flow_control_window.py b/test/test_flow_control_window.py index 7a445af10..223cf39fe 100644 --- a/test/test_flow_control_window.py +++ b/test/test_flow_control_window.py @@ -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