From c1f43c5a592db47ebe91c2da5884e89a13a20e67 Mon Sep 17 00:00:00 2001 From: Esdras Eduardo Date: Tue, 10 Dec 2024 17:38:07 +0800 Subject: [PATCH] docs: fix arguments missing on calc context (#1648) --- documentation/topics/resources/calculations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/topics/resources/calculations.md b/documentation/topics/resources/calculations.md index fcd0aecd7..2dc72265e 100644 --- a/documentation/topics/resources/calculations.md +++ b/documentation/topics/resources/calculations.md @@ -49,7 +49,7 @@ defmodule Concat do end @impl true - def calculate(records, opts, %{separator: separator}) do + def calculate(records, opts, %{arguments: %{separator: separator}}) do Enum.map(records, fn record -> Enum.map_join(opts[:keys], separator, fn key -> to_string(Map.get(record, key))