Skip to content

Commit

Permalink
Fix some typos in the documentation (fixes #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Nov 2, 2023
1 parent 88db004 commit 52227e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ After the format string, references to arguments to be parsed are given.
// Scanning an int
int i;
scn::scan("123", "{}", i):
scn::scan("123", "{}", i);
// i == 123
// Scanning a double
Expand Down Expand Up @@ -377,7 +377,7 @@ The return value of ``scn::scan_value<T>`` contains a ``.value()`` member functi
As is evident by the presence of an extra member function, the return type of ``scan_value`` is not the same as the one of ``scan``.
The return type of ``scan`` inherits from ``scn::wrapped_error``, but the return type of ``scan_value`` inherits from ``scn::expected<T>``.
To use ``make_result`` with ``make_value``, this needs to be taken into account:
To use ``make_result`` with ``scan_value``, this needs to be taken into account:

.. code-block:: cpp
Expand Down
2 changes: 1 addition & 1 deletion docs/rationale/vscan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ What's with all the ``vscan``, ``basic_args`` and ``arg_store`` stuff?
======================================================================

This approach is borrowed (*cough* stolen *cough*) from fmtlib, for the same
reason it's in there as well. Consider this peace of code:
reason it's in there as well. Consider this piece of code:

.. code-block:: cpp
Expand Down

0 comments on commit 52227e6

Please sign in to comment.