@@ -68,7 +68,7 @@ defmodule Scenic.Cache.Hash do
6868 Returns the hash wrapped in a `{:ok, hash}` tuple.
6969 """
7070 @ spec binary ( data :: binary , type :: hash_type ) ::
71- { :ok , bitstring ( ) } | { :error , :invalid_hash_type }
71+ { :ok , bitstring ( ) } | { :error , :invalid_hash_type }
7272 def binary ( data , type ) do
7373 case valid_hash_type? ( type ) do
7474 true -> { :ok , type |> :crypto . hash ( data ) |> Base . url_encode64 ( padding: false ) }
@@ -90,7 +90,7 @@ defmodule Scenic.Cache.Hash do
9090
9191 # --------------------------------------------------------
9292 @ spec file ( path :: bitstring , type :: hash_type ) ::
93- { :ok , bitstring ( ) } | { :error , :invalid_hash_type }
93+ { :ok , bitstring ( ) } | { :error , :invalid_hash_type }
9494 def file ( path , hash_type ) do
9595 do_compute_file (
9696 path ,
@@ -148,7 +148,7 @@ defmodule Scenic.Cache.Hash do
148148 If it fails, returns `{:error, :hash_failure}`
149149 """
150150 @ spec verify ( data :: binary , hash :: bitstring , type :: hash_type ) ::
151- { :ok , binary } | { :error , :hash_failure }
151+ { :ok , binary } | { :error , :hash_failure }
152152 def verify ( data , hash , hash_type ) do
153153 case binary ( data , hash_type ) do
154154 { :ok , ^ hash } -> { :ok , data }
0 commit comments