mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
AK: Fix typo in instructions for adopt_nonnull_REF_or_enomem
This commit is contained in:
parent
77f021f5f1
commit
32a777347f
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/32a777347f Pull-request: https://github.com/SerenityOS/serenity/pull/18816
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ inline NonnullRefPtr<T> adopt_ref(T& object)
|
||||||
return NonnullRefPtr<T>(NonnullRefPtr<T>::Adopt, 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>
|
template<typename T>
|
||||||
inline ErrorOr<NonnullRefPtr<T>> adopt_nonnull_ref_or_enomem(T* object)
|
inline ErrorOr<NonnullRefPtr<T>> adopt_nonnull_ref_or_enomem(T* object)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue