Browse Source

Arrange function order

Loïc Hoguin 8 years ago
parent
commit
7fe557b9d3
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/cow_date.erl

+ 6 - 6
src/cow_date.erl

@@ -201,6 +201,12 @@ horse_http_date_asctime() ->
 	).
 -endif.
 
+%% @doc Return the date formatted according to RFC1123.
+
+-spec rfc1123(calendar:datetime()) -> binary().
+rfc1123(DateTime) ->
+	rfc7231(DateTime).
+
 %% @doc Return the date formatted according to RFC2109.
 
 -spec rfc2109(calendar:datetime()) -> binary().
@@ -238,12 +244,6 @@ horse_rfc2109_12340506_070809() ->
 	).
 -endif.
 
-%% @doc Return the date formatted according to RFC1123.
-
--spec rfc1123(calendar:datetime()) -> binary().
-rfc1123(DateTime) ->
-	rfc7231(DateTime).
-
 %% @doc Return the date formatted according to RFC7231.
 
 -spec rfc7231(calendar:datetime()) -> binary().