diff --git a/cheatsheet.md b/cheatsheet.md index a4f7438..2e2c218 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -222,7 +222,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 } ```