From 7cf765e3564c7dcace92dc88489efea025fc08f7 Mon Sep 17 00:00:00 2001 From: ericLemanissier Date: Mon, 4 Dec 2017 12:32:06 +0100 Subject: [PATCH] fix typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 529a3e3..8ac5867 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ The interface is the same as `std::expected` as proposed in [p0323r3](http://www * `tl::expected s = exp_string.map(&std::string::size);` - `map_error`: carries out some operation on the unexpected object if there is one. * `my_error_code translate_error (std::error_code);` - * `tl::expected s = exp_int.map(translate_error);` + * `tl::expected s = exp_int.map_error(translate_error);` - `and_then`: like `map`, but for operations which return a `tl::expected`. * `tl::expected parse (const std::string& s);` * `tl::expected exp_ast = exp_string.and_then(parse);`