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 } ```