From 9218dda00197c1c5e019097585b8733e1d43f776 Mon Sep 17 00:00:00 2001 From: Michael Hamilton Date: Thu, 1 Dec 2016 22:24:47 -0800 Subject: [PATCH] nullify_shared_ptr changing == to = in documentation. --- cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheet.md b/cheatsheet.md index 6bde03f..11e5f5a 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -206,7 +206,7 @@ Conversion to `std::shared_ptr &` is supported for function calls, but if you ```cpp // ok this is supported, you can register it with chaiscript engine void nullify_shared_ptr(std::shared_ptr &t) { - t == nullptr + t = nullptr } ```