1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 11:00:46 +00:00

AK: Fix typo in instructions for adopt_nonnull_REF_or_enomem

This commit is contained in:
Ben Wiederhake 2023-05-13 18:05:10 +02:00 committed by Andreas Kling
parent 77f021f5f1
commit 32a777347f

View File

@ -226,7 +226,7 @@ inline NonnullRefPtr<T> adopt_ref(T& object)
return NonnullRefPtr<T>(NonnullRefPtr<T>::Adopt, object);
}
// Use like `adopt_nonnull_own_or_enomem(new (nothrow) T(args...))`.
// Use like `adopt_nonnull_ref_or_enomem(new (nothrow) T(args...))`.
template<typename T>
inline ErrorOr<NonnullRefPtr<T>> adopt_nonnull_ref_or_enomem(T* object)
{