docs: inset code in set_attrbute docs (#745)

This commit is contained in:
Kevin Schweikert 2023-10-21 20:13:45 +02:00 committed by GitHub
parent 799a1d1dd3
commit 313ec74152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,10 +158,10 @@ defmodule Ash.Resource.Change.Builtins do
## Examples
change set_attribute(:active, false)
change set_attribute(:opened_at, &DateTime.utc_now/0)
change set_attribute(:status, arg(:status))
change set_attribute(:encrypted_data, arg(:data), set_when_nil?: false)
change set_attribute(:active, false)
change set_attribute(:opened_at, &DateTime.utc_now/0)
change set_attribute(:status, arg(:status))
change set_attribute(:encrypted_data, arg(:data), set_when_nil?: false)
"""
@spec set_attribute(
relationship :: atom,