Skip to content

Commit

Permalink
Merge 5fcdd19 into a556887
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 21, 2020
2 parents a556887 + 5fcdd19 commit 6f3a351
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/pages/context.rst
Expand Up @@ -273,7 +273,7 @@ so you can work easily with it:
allows to bind functions that return ``Result`` with just one call
- :meth:`~RequiresContextResult.bind_context`
allows to bind functions that return ``RequiresContext`` easily
- There are also several useful contructors from any possible type
- There are also several useful constructors from any possible type

Use it when you work with pure context-related functions that might fail.

Expand All @@ -300,7 +300,7 @@ so you can work easily with it:
allows to bind functions that return ``RequiresContext`` easily
- :meth:`~RequiresContextIOResult.bind_context_result`
allows to bind functions that return ``RequiresContextResult`` easily
- There are also several useful contructors from any possible type
- There are also several useful constructors from any possible type

Use it when you work with impure context-related functions that might fail.
This is basically **the main type** that is going to be used in most apps.
Expand Down
4 changes: 2 additions & 2 deletions returns/functions.py
Expand Up @@ -70,7 +70,7 @@ def tap(
"""
Allows to apply some function and return an argument, instead of a result.
Is usefull for composing functions with
Is useful for composing functions with
side-effects like ``print()``, ``logger.log()``, etc.
.. code:: python
Expand All @@ -97,7 +97,7 @@ def untap(
"""
Allows to apply some function and always return ``None`` as a result.
Is usefull for composing functions that do some side effects
Is useful for composing functions that do some side effects
and return some nosense.
Is the kind of a reverse of the ``tap`` function.
Expand Down
2 changes: 1 addition & 1 deletion returns/io.py
Expand Up @@ -429,7 +429,7 @@ def value_or(
default_value: _NewValueType,
) -> IO[Union[_ValueType, _NewValueType]]:
"""
Get value from succesful container or default value from failed one.
Get value from successful container or default value from failed one.
.. code:: python
Expand Down
6 changes: 3 additions & 3 deletions returns/maybe.py
Expand Up @@ -113,7 +113,7 @@ def value_or(
default_value: _NewValueType,
) -> Union[_ValueType, _NewValueType]:
"""
Get value from succesful container or default value from failed one.
Get value from successful container or default value from failed one.
.. code:: python
Expand Down Expand Up @@ -203,7 +203,7 @@ class _Nothing(Maybe[Any]):

def __init__(self, inner_value: None = None) -> None:
"""
Private contructor for ``_Nothing`` type.
Private constructor for ``_Nothing`` type.
Use :attr:`~Nothing` instead.
Wraps the given value in the ``_Nothing`` container.
Expand Down Expand Up @@ -273,7 +273,7 @@ def unwrap(self):
return self._inner_value

def failure(self):
"""Raises exception for succesful container."""
"""Raises exception for successful container."""
raise UnwrapFailedError(self)


Expand Down
6 changes: 3 additions & 3 deletions returns/result.py
Expand Up @@ -40,8 +40,8 @@ class Result(
"""
Base class for :class:`~_Failure` and :class:`~_Success`.
:class:`~Result` does not have a public contructor.
Use :func:`~Success` and :func:`~Failure` to contruct the needed values.
:class:`~Result` does not have a public constructor.
Use :func:`~Success` and :func:`~Failure` to construct the needed values.
See also:
https://bit.ly/361qQhi
Expand Down Expand Up @@ -450,7 +450,7 @@ def unwrap(self):
return self._inner_value

def failure(self):
"""Raises an exception for succesful container."""
"""Raises an exception for successful container."""
raise UnwrapFailedError(self)


Expand Down

0 comments on commit 6f3a351

Please sign in to comment.