From fd96e4545cc50ddfbbead177ef6594b12b210d62 Mon Sep 17 00:00:00 2001 From: Lesley Lai Date: Wed, 17 Jul 2019 23:45:19 -0600 Subject: [PATCH] Syntax highlight in README (#64) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97a037a..9802985 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Available on [Vcpkg](https://github.com/microsoft/vcpkg/tree/master/ports/tl-exp For example, instead of writing this code: -``` +```cpp std::expected get_cute_cat (const image& img) { auto cropped = crop_to_cat(img); if (!cropped) { @@ -34,7 +34,7 @@ std::expected get_cute_cat (const image& img) { You can do this: -``` +```cpp tl::expected get_cute_cat (const image& img) { return crop_to_cat(img) .and_then(add_bow_tie)