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`.