From 1e91631c38d11a51db9ab67aeab7a912e40b2749 Mon Sep 17 00:00:00 2001 From: Angelika Tyborska Date: Sun, 19 Nov 2023 18:10:14 +0100 Subject: [PATCH] Add analyzer comment for Elixir community-garden --- .../elixir/community-garden/use_get_and_update.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 analyzer-comments/elixir/community-garden/use_get_and_update.md diff --git a/analyzer-comments/elixir/community-garden/use_get_and_update.md b/analyzer-comments/elixir/community-garden/use_get_and_update.md new file mode 100644 index 000000000..5c0ba13aa --- /dev/null +++ b/analyzer-comments/elixir/community-garden/use_get_and_update.md @@ -0,0 +1,3 @@ +# use get_and_update + +When you need to get an Agent's state and then update it, make sure to do it as a single operation by using `Agent.get_and_update`.