From 58e9e76814a8291894ba01ac8a4551e4f8d480b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 4 Sep 2017 14:33:44 +0200 Subject: Fix more documentation todos I have decided not to include a manual page for cowboy_stream_h at this point because it clashes with the cowboy_stream manual page. This decision will be revisited in the future. --- src/cowboy_constraints.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cowboy_constraints.erl') diff --git a/src/cowboy_constraints.erl b/src/cowboy_constraints.erl index 6b468fe..6509c4b 100644 --- a/src/cowboy_constraints.erl +++ b/src/cowboy_constraints.erl @@ -78,11 +78,11 @@ int(format_error, {not_an_integer, Value}) -> io_lib:format("The value ~p is not an integer.", [Value]). nonempty(Type, <<>>) when Type =/= format_error -> - {error, not_empty}; + {error, empty}; nonempty(Type, Value) when Type =/= format_error, is_binary(Value) -> {ok, Value}; -nonempty(format_error, {not_empty, Value}) -> - io_lib:format("The value ~p is not empty.", [Value]). +nonempty(format_error, {empty, Value}) -> + io_lib:format("The value ~p is empty.", [Value]). -ifdef(TEST). -- cgit v1.2.3