docs: add missing argument to calculate example (#633)

This commit is contained in:
Robert Ellen 2023-06-28 11:46:28 +10:00 committed by GitHub
parent 5d20af82c3
commit 924b62130d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ defmodule Ash.Resource.Calculation.Builtins do
## Examples ## Examples
calculate :full_name, concat([:first_name, :last_name], " ") calculate :full_name, :string, concat([:first_name, :last_name], " ")
""" """
@spec concat(keys :: list(atom), separator :: String.t()) :: Ash.Resource.Calculation.ref() @spec concat(keys :: list(atom), separator :: String.t()) :: Ash.Resource.Calculation.ref()
def concat(keys, separator \\ "") do def concat(keys, separator \\ "") do