# TWeakPtr Documentation uses Lock() function not Pin()

**URL:** <https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334>\
**Category:** Feedback & Requests\
**Tags:** typo, unreal-engine, documentation, pointer, bug-report, CPP, question\
**Created:** [September 15, 2015, 11:41pm UTC](https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334 "2015-09-15T23:41:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [September 15, 2015, 11:41pm UTC](https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334/1 "2015-09-15T23:41:46Z")

</div>

Hey team,

The TWeakPtr documentation uses a Lock() function which has (I presume) been replaced with .Pin() as its no longer in SharedPtr.h or TWeakPtr’s class documentation. The following tutorial is out of date:

> **[Weak Pointers](https://docs.unrealengine.com/5.0/en-US/weak-pointers-in-unreal-engine/)**
>
> Smart pointers that store weak references and do not prevent their objects from being destroyed.

Cheers,  
Mugen

---

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [October 19, 2015, 2:35am UTC](https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334/2 "2015-10-19T02:35:23Z")

</div>

Bump, this documentation is still invalid.

---

<div class="post-metadata">

**Author:** ![PowerDesign](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PowerDesign](https://forums.unrealengine.com/u/PowerDesign)\
**Post date:** [April 22, 2016, 1:20pm UTC](https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334/3 "2016-04-22T13:20:54Z")

</div>

Thanks for confirming! I feel not alone : )

---

<div class="post-metadata">

**Author:** ![Rainbowdash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rainbowdash](https://forums.unrealengine.com/u/Rainbowdash)\
**Post date:** [May 21, 2016, 11:43am UTC](https://forums.unrealengine.com/t/tweakptr-documentation-uses-lock-function-not-pin/332334/4 "2016-05-21T11:43:46Z")

</div>

stumbled upon this today 😉
