From 58507857bcf5d8648652da1b71a4755ac2795afb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 3 Dec 2023 19:03:42 -0600 Subject: [PATCH] [ox/std] Rename Result::get to Result::copyTo (synced from 9ab3543b3223505faec1061695d36e2e6a009ae7) --- src/ox/std/error.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index ca6a6e9a3..d85cde604 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -165,12 +165,12 @@ struct [[nodiscard]] Result { return error == 0; } - constexpr Error get(type *val) const noexcept { + constexpr Error copyTo(type *val) const noexcept { *val = value; return error; } - constexpr Error get(type *val) noexcept { + constexpr Error copyTo(type *val) noexcept { *val = value; return error; }