diff --git a/src/core/common/owning_list.hpp b/src/core/common/owning_list.hpp index be57ab9fb..3b73fe6eb 100644 --- a/src/core/common/owning_list.hpp +++ b/src/core/common/owning_list.hpp @@ -89,7 +89,7 @@ public: * * @note This method does not change the popped entry itself, i.e., the popped entry next pointer stays as before. * - * @returns An `OwnerPtr` to the entry that was popped (set to null if list of empty). + * @returns An `OwnedPtr` to the entry that was popped (set to null if list of empty). * */ OwnedPtr Pop(void) { return OwnedPtr(LinkedList::Pop()); } @@ -102,7 +102,7 @@ public: * @param[in] aPrevEntry A pointer to a previous entry. If it is not `nullptr` the entry after this will be popped, * otherwise (if it is `nullptr`) the entry at the head of the list is popped. * - * @returns An `OwnerPtr` to the entry that was popped (set to null if there is no entry to pop). + * @returns An `OwnedPtr` to the entry that was popped (set to null if there is no entry to pop). * */ OwnedPtr PopAfter(Type *aPrevEntry) { return OwnedPtr(LinkedList::PopAfter(aPrevEntry)); } @@ -121,7 +121,7 @@ public: * * @param[in] aIndicator An entry indicator to match against entries in the list. * - * @returns An `OwnerPtr` to the entry that was removed (set to null if there is no matching entry to remove). + * @returns An `OwnedPtr` to the entry that was removed (set to null if there is no matching entry to remove). * */ template OwnedPtr RemoveMatching(const Indicator &aIndicator)