Skip to content

Commit 2c475a6

Browse files
committed
Fix documentation
1 parent e10016e commit 2c475a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/oup/observable_unique_ptr.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ class observer_ptr {
908908

909909
/// Move from an existing observer_ptr instance
910910
/** \param value The existing weak pointer to move from
911-
* \note After this observable_unique_ptr is created, the source
911+
* \note After this observer_ptr is created, the source
912912
* pointer is set to null.
913913
*/
914914
observer_ptr(observer_ptr&& value) noexcept : block(value.block), data(value.data) {
@@ -918,7 +918,7 @@ class observer_ptr {
918918

919919
/// Move from an existing observer_ptr instance
920920
/** \param value The existing weak pointer to move from
921-
* \note After this observable_unique_ptr is created, the source
921+
* \note After this observer_ptr is created, the source
922922
* pointer is set to null. This constructor only takes part in
923923
* overload resolution if D is convertible to Deleter and U* is
924924
* convertible to T*.
@@ -1057,7 +1057,7 @@ class observer_ptr {
10571057
/// Get a non-owning raw pointer to the pointed object, or nullptr if deleted.
10581058
/** \return 'nullptr' if expired() is 'true', or the pointed object otherwise
10591059
* \note This does not extend the lifetime of the pointed object. Therefore, when
1060-
* calling this function, you must make sure that the owning observable_unique_ptr
1060+
* calling this function, you must make sure that the owning pointer
10611061
* will not be reset until you are done using the raw pointer.
10621062
*/
10631063
T* get() const noexcept {
@@ -1067,7 +1067,7 @@ class observer_ptr {
10671067
/// Get a non-owning raw pointer to the pointed object, possibly dangling.
10681068
/** \return The pointed object, which may be a dangling pointer if the object has been deleted
10691069
* \note This does not extend the lifetime of the pointed object. Therefore, when
1070-
* calling this function, you must make sure that the owning observable_unique_ptr
1070+
* calling this function, you must make sure that the owning pointer
10711071
* will not be reset until you are done using the raw pointer. In addition,
10721072
* this function will not check if the pointer has expired (i.e., if the object
10731073
* has been deleted), so the returned pointer may be dangling.
@@ -1089,7 +1089,7 @@ class observer_ptr {
10891089
/** \return 'nullptr' if expired() is 'true', or the pointed object otherwise
10901090
* \note Contrary to std::weak_ptr::lock(), this does not extend the lifetime
10911091
* of the pointed object. Therefore, when calling this function, you must
1092-
* make sure that the owning observable_unique_ptr will not be reset until
1092+
* make sure that the owning pointer will not be reset until
10931093
* you are done using the raw pointer.
10941094
*/
10951095
T* operator->() const noexcept {

0 commit comments

Comments
 (0)