From 1e4b2fdb9308494b7c1f75816f10ebc7b11b0533 Mon Sep 17 00:00:00 2001 From: Ted Yin Date: Sat, 3 Feb 2018 22:51:30 -0500 Subject: Update README.rst --- README.rst | 4 ++-- 1 file 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 reject(T reason) const; + template 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 -- cgit v1.2.3