Skip to content

Commit a81ee96

Browse files
committed
Fix typos in doc
1 parent ccbc7a3 commit a81ee96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/usage/compare-versions-through-expression.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ implement, as the same code will handle both cases:
4747
False
4848
4949
50-
Using the :class:`Spec <semver.spec.Spec>` class
50+
Using the :class:`~semver.spec.Spec` class
5151
------------------------------------------------
5252

53-
The :class:`Spec <semver.spec.Spec>` class is the underlying object
53+
The :class:`~semver.spec.Spec` class is the underlying object
5454
which makes comparison possible.
5555

5656
It supports comparisons through usual Python operators:
@@ -62,7 +62,7 @@ It supports comparisons through usual Python operators:
6262
>>> Spec("1.3") == '1.3.10'
6363
False
6464
65-
If you need to reuse a ``Spec`` object, use the :meth:`match <semver.spec.Spec.match>` method:
65+
If you need to reuse a ``Spec`` object, use the :meth:`~semver.spec.Spec.match` method:
6666

6767
.. code-block:: python
6868
@@ -106,9 +106,9 @@ as in the following examples:
106106
Using caret expressions
107107
-----------------------
108108

109-
Care expressions are "compatible with a version".
109+
Caret expressions are "compatible with a version".
110110
They are expressions like ``^1``, ``^1.2``, or ``^1.2.3``.
111-
Care expressions freezes the major number only.
111+
Caret expressions freezes the major number only.
112112

113113
Internally they are converted into two comparisons:
114114

@@ -124,7 +124,7 @@ Internally they are converted into two comparisons:
124124
>>> version.match("^1.3")
125125
False
126126
127-
It is possible to add placeholders to the care expression. Placeholders
127+
It is possible to add placeholders to the caret expression. Placeholders
128128
are ``x``, ``X``, or ``*`` and are replaced by zeros like in the following examples:
129129

130130
.. code-block:: python

0 commit comments

Comments
 (0)