Skip to content

Commit 151aab0

Browse files
authored
Update SharedPtr.md
1 parent 5eec8c2 commit 151aab0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference/api/platform/SharedPtr.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ It is similar to the `std::shared_ptr` class introduced in C++11. However, this
77

88
Usage: `SharedPtr<Class> ptr(new Class())`
99

10-
When `ptr` is passed around by value the copy constructor and
11-
destructor manages the reference count of the raw pointer.
10+
When `ptr` is passed around by a value, the copy constructor and
11+
destructor manage the reference count of the raw pointer.
1212
If the counter reaches zero, `delete` is called on the raw pointer.
1313

14-
To avoid loops, "weak" references should be used by calling the original
15-
pointer directly through `ptr.get()`.
14+
To avoid loops, use "weak" references by calling the original
15+
pointer directly with `ptr.get()`.
1616

1717

1818
### SharedPtr class reference

0 commit comments

Comments
 (0)