aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/kstd/kstd/bits/observer_ptr.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/kstd/bits/observer_ptr.hpp b/libs/kstd/kstd/bits/observer_ptr.hpp
index d0c40549..753cfcb7 100644
--- a/libs/kstd/kstd/bits/observer_ptr.hpp
+++ b/libs/kstd/kstd/bits/observer_ptr.hpp
@@ -127,7 +127,7 @@ namespace kstd
private:
//! Throw an exception if the observer pointer is null.
//!
- //! @throws std::runtime_error if the observer pointer is null.
+ //! @warning This function panics if a nullptr-dereference is detected.
constexpr auto throw_on_null() const -> void
{
if (m_ptr == nullptr)