Skip to content

Commit

Permalink
Minor typo in syntax fixed (#1569)
Browse files Browse the repository at this point in the history
{{ok, Value, Context}; to {{ok, Value}, Context};
  • Loading branch information
row-b authored and ddeboer committed Jan 3, 2017
1 parent 4fcc5ab commit 166791e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/ref/validators/validator_postback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The ``event`` argument declares the name of the event that will be
observe_validate_username({validate_username, {postback, Id, Value, _Args}}, Context) ->
case is_valid(Value) of
true ->
{{ok, Value, Context};
{{ok, Value}, Context};
false ->
%% The validation message will be shown in the form
{{error, Id, "Sorry, that's not valid. Try again!"}, Context}
Expand Down

0 comments on commit 166791e

Please sign in to comment.