mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
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.
This commit is contained in:
parent
47aa0097ed
commit
58e9e76814
14 changed files with 225 additions and 55 deletions
|
@ -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).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue