From 4ae45a9dcebab7973a5fca17293e7717c74c0301 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 22 Jun 2023 22:18:32 -0500 Subject: [PATCH] deprecated: `map.get_opt` --- CHANGELOG | 2 +- core/container/map.onyx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 50746415..383d84d9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,7 +5,7 @@ Release v0.1.4 Additions: Removals: -- `map.get_opt` +- Deprecated `map.get_opt`. - This is unnecessary with the new semantics of `map.get`. Changes: diff --git a/core/container/map.onyx b/core/container/map.onyx index e055f4b4..4d7e654d 100644 --- a/core/container/map.onyx +++ b/core/container/map.onyx @@ -168,6 +168,8 @@ get_ptr_or_create :: (use map: &Map, key: map.Key_Type) -> &map.Value_Type { } #doc """ + **DEPRECATED** - Use `map.get` instead. + Returns an Optional of the value at the specified key. The Optional has a value if the key is present, otherwise the optional does not have a value. -- 2.25.1