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
Notes: sideshowbarker 2024-07-17 07:19:27 +09:00

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)
{