mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
AK: Fix typo in instructions for adopt_nonnull_REF_or_enomem
This commit is contained in:
parent
77f021f5f1
commit
32a777347f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue