Skip to content

Commit c41d7a4

Browse files
committed
Docs fixups following #10534
1 parent d067260 commit c41d7a4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/client_advanced.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ Custom socket creation
472472
^^^^^^^^^^^^^^^^^^^^^^
473473

474474
If the default socket is insufficient for your use case, pass an optional
475-
`socket_factory` to the :class:`~aiohttp.TCPConnector`, which implements
476-
`SocketFactoryType`. This will be used to create all sockets for the
475+
``socket_factory`` to the :class:`~aiohttp.TCPConnector`, which implements
476+
``SocketFactoryType``. This will be used to create all sockets for the
477477
lifetime of the class object. For example, we may want to change the
478478
conditions under which we consider a connection dead. The following would
479479
make all sockets respect 9*7200 = 18 hours::

docs/client_reference.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ is controlled by *force_close* constructor's parameter).
11321132

11331133
Be sure to use ``aiohttp.AddrInfoType`` rather than
11341134
``aiohappyeyeballs.AddrInfoType`` to avoid import breakage, as
1135-
it is likely to be removed from ``aiohappyeyeballs`` in the
1135+
it is likely to be removed from :ref:`aiohappyeyeballs` in the
11361136
future.
11371137

11381138

@@ -1146,7 +1146,7 @@ is controlled by *force_close* constructor's parameter).
11461146

11471147
Be sure to use ``aiohttp.SocketFactoryType`` rather than
11481148
``aiohappyeyeballs.SocketFactoryType`` to avoid import breakage,
1149-
as it is likely to be removed from ``aiohappyeyeballs`` in the
1149+
as it is likely to be removed from :ref:`aiohappyeyeballs` in the
11501150
future.
11511151

11521152

@@ -1278,8 +1278,8 @@ is controlled by *force_close* constructor's parameter).
12781278

12791279
.. versionadded:: 3.10
12801280

1281-
:param :py:data:``SocketFactoryType`` socket_factory: This function takes an
1282-
:py:data:``AddrInfoType`` and is used in lieu of ``socket.socket()`` when
1281+
:param SocketFactoryType socket_factory: This function takes an
1282+
:py:data:`AddrInfoType` and is used in lieu of ``socket.socket()`` when
12831283
creating TCP connections.
12841284

12851285
.. versionadded:: 3.12

0 commit comments

Comments
 (0)