From 525af2e3e4cccd90edc615aa8958744c20759598 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sat, 20 Apr 2024 17:51:23 +0200 Subject: [PATCH] Document that `get!` may mutate `Dict` This is guaranteed since #9595 but not documented. --- base/dict.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/dict.jl b/base/dict.jl index 4a63ed364b64d..746cde99610a9 100644 --- a/base/dict.jl +++ b/base/dict.jl @@ -416,6 +416,8 @@ Return the value stored for the given key, or if no mapping for the key is prese This is intended to be called using `do` block syntax. +When `collection` is a `Dict`, `f` is allowed to add or remove keys and/or change values. + # Examples ```jldoctest julia> squares = Dict{Int, Int}();