aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Yin <tederminant@gmail.com>2018-02-03 22:51:30 -0500
committerGitHub <noreply@github.com>2018-02-03 22:51:30 -0500
commit1e4b2fdb9308494b7c1f75816f10ebc7b11b0533 (patch)
tree6c07edaa7623d8dd18e3c93057615b51129b1424
parentbfb37b656788c49dac20ad2ae38f23cfdd1c5c36 (diff)
Update README.rst
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 42417b5..5f3d2fb 100644
--- a/README.rst
+++ b/README.rst
@@ -7,7 +7,7 @@ CPPromise
.. image:: https://img.shields.io/github/license/Determinant/cppromise.svg
:target: https://github.com/Determinant/cppromise
-This is a lightweight C++14/17 compatiable implementation of promises (similar
+This is a lightweight C++14/17 compatible implementation of promises (similar
to Javascript Promise/A+). It allows type-safe polymorphic promises and incurs
little runtime overhead. The runtime type-checking is enforced and supported by
the underlying `any` type, an exception will be thrown when the resolved value
@@ -36,7 +36,7 @@ registered ``on_fulfilled()`` function will be invoked using ``result`` as the a
.. code-block:: cpp
- tempalte<typename T> reject(T reason) const;
+ template<typename T> reject(T reason) const;
Reject the promise with value ``result``. This may reject the other promises
waiting for the current promise recursively. When a promise is rejected, the