Skip to content

Commit 9b5aa22

Browse files
committed
Small docs fixes
1 parent 5a26cdf commit 9b5aa22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/history.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ History and release notes
99

1010
* Dropped support for Python < 3.6
1111
* Added :meth:`Parser.until`. Thanks `@mcdeoliveira <https://github.com/mcdeoliveira>`_!
12-
* `Parser.optional` now supports an optional default argument to be returned instead of ``None``.
12+
* :meth:`Parser.optional` now supports an optional default argument to be returned instead of ``None``.
1313

1414
1.4.0 - 2021-11-15
1515
------------------

docs/ref/methods_and_combinators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ can be used and manipulated as below.
130130
131131
.. versionadded:: 2.0
132132

133-
.. method:: optional([default=None])
133+
.. method:: optional(default=None)
134134

135135
Returns a parser that expects the initial parser zero or once, and maps
136136
the result to a given default value in the case of no match. If no default

0 commit comments

Comments
 (0)