Skip to content

Commit

Permalink
Add a missing mapErr method signature to the documentation (#115)
Browse files Browse the repository at this point in the history
I forgot to include it when I pushed [1].

[1] ea052ad ("Implement AsyncResult.mapErr (#113)")
  • Loading branch information
jstasiak authored Mar 4, 2024
1 parent 5804963 commit 51ac236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/reference/api/asyncresult.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Example:
``mapErr()``
------------
.. code-block:: typescript
mapErr<F>(mapper: (val: E) => F | Promise<F>): AsyncResult<T, F>
Maps an ``AsyncResult<T, E>`` to ``AsyncResult<T, F>`` by applying ``mapper`` to the ``Err`` value,
leaving ``Ok`` value untouched.
Expand Down

0 comments on commit 51ac236

Please sign in to comment.