We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8615554 commit 39ef7abCopy full SHA for 39ef7ab
lib/ex_structable/hooks.ex
@@ -41,12 +41,12 @@ defmodule ExStructable.Hooks do
41
42
The return value is the return value of
43
`YourModule.new/2`/`YourModule.put/3`, so usually returns a struct when
44
- validation passes.
+ validation passes. (You could return something else if you want to.)
45
46
When validation fails you should raise, or return a custom error value such
47
as `{:error, struct, reason}`. If validation fails, one option would be to
48
alter the struct so that it is valid. The choice of implementation is up to
49
- the developer.
+ you.
50
51
By default returns the given struct without any checking.
52
0 commit comments