Skip to content

Commit

Permalink
Typos, and replaced 'checksum' with 'digest': more consistent with Er…
Browse files Browse the repository at this point in the history
…lang documentation
  • Loading branch information
ariel-anieli committed Dec 20, 2023
1 parent 19c717f commit bbdbbf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ec_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ try_write_owner(To, #file_info{uid=OwnerId}) ->
try_write_group(To, #file_info{gid=OwnerId}) ->
file:write_file_info(To, #file_info{gid=OwnerId}).

%% @doc return an md5 checksum string or a binary. Same as unix utility of
%% same name.
%% @doc return the MD5 digest of a string or a binary,
%% named after the UNIX utility.
-spec md5sum(string() | binary()) -> string().
md5sum(Value) ->
hex(binary_to_list(erlang:md5(Value))).

%% @doc return an sha1sum checksum string or a binary. Same as unix utility of
%% same name.
%% @doc return the SHA-1 digest of a string or a binary,
%% named after the UNIX utility.
-ifdef(deprecated_crypto).
-spec sha1sum(string() | binary()) -> string().
sha1sum(Value) ->
Expand Down

0 comments on commit bbdbbf3

Please sign in to comment.