8000 docs: Fix docs (#44) · ada-url/ada-python@8124920 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8124920

Browse files
authored
docs: Fix docs (#44)
* docs: fix install command * docs: fix documentation example * docs: fix example about url replacing
1 parent 0dda1fd commit 8124920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Replacing URL components with the ``URL`` class:
6666
>>> urlobj = URL('https://example.org/path/../file.txt')
6767
>>> urlobj.host = 'example.com'
6868
>>> urlobj.href
69-
'https://example.com/path/file.txt'
69+
'https://example.com/file.txt'
7070
7171
Replacing URL components with the ``replace_url`` function:
7272

@@ -129,7 +129,7 @@ Contrast that with the Python standard library's ``urlib.parse`` module:
129129
.. code-block:: python
130130
131131
>>> from urllib.parse import urlparse
132-
>>> parsed_url = urlparse()
132+
>>> parsed_url = urlparse('https://www.GOoglé.com/./path/../path2/')
133133
>>> parsed_url.hostname
134134
'www.googlé.com'
135135
>>> parsed_url.path

0 commit comments

Comments
 (0)
0