From b23e33bc8dbdaecbb4f834d9476a689853d7e66a Mon Sep 17 00:00:00 2001 From: Malte Rohde Date: Wed, 20 Dec 2023 13:43:48 +0100 Subject: [PATCH] comment about right associative -- operator --- lib/bitcrowd_ecto/changeset.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bitcrowd_ecto/changeset.ex b/lib/bitcrowd_ecto/changeset.ex index 1c0357e..efd5b58 100644 --- a/lib/bitcrowd_ecto/changeset.ex +++ b/lib/bitcrowd_ecto/changeset.ex @@ -527,6 +527,8 @@ defmodule BitcrowdEcto.Changeset do end defp cast_scalars(schema_struct, params, scalars, required) do + # Don't be confused, `--` is right-associative. + # https://hexdocs.pm/elixir/1.15.7/operators.html#operator-precedence-and-associativity required = scalars -- scalars -- required schema_struct