From 32a777347f8c17735c323266d9221e60c7f469a9 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 13 May 2023 18:05:10 +0200 Subject: [PATCH] AK: Fix typo in instructions for adopt_nonnull_REF_or_enomem --- AK/NonnullRefPtr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/NonnullRefPtr.h b/AK/NonnullRefPtr.h index b99fef6c4b..1c6bd18c5e 100644 --- a/AK/NonnullRefPtr.h +++ b/AK/NonnullRefPtr.h @@ -226,7 +226,7 @@ inline NonnullRefPtr adopt_ref(T& object) return NonnullRefPtr(NonnullRefPtr::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 inline ErrorOr> adopt_nonnull_ref_or_enomem(T* object) {