From 09bd8882d2940261b6d12555cdd8db0c6614da83 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Tue, 12 Apr 2016 08:18:39 +1000 Subject: [PATCH] Remove weird wording around final para of optimistic_lock docs (#1365) --- lib/ecto/changeset.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecto/changeset.ex b/lib/ecto/changeset.ex index 81f8f2bb47..9649589abf 100644 --- a/lib/ecto/changeset.ex +++ b/lib/ecto/changeset.ex @@ -1424,7 +1424,7 @@ defmodule Ecto.Changeset do iex> changeset = Ecto.Changeset.optimistic_lock(post, :lock_version) iex> Repo.delete(changeset) - Finally, keep in `optimistic_lock/3` by default assumes the field + `optimistic_lock/3` by default assumes the field being used as a lock is an integer. If you want to use another type, you need to pass the third argument customizing how the next value is generated: