Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/concept/file-sniffer/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ FileSniffer.type_from_extension("txt")

## 2. Given a binary file, return the expected media type

Implement the `type_from_binary/1` function. It should take a file (binary) and return the media type (string) or nil if the extension does not match with the expected ones.
Implement the `type_from_binary/1` function. It should take a file (binary) and return the media type (string) or nil if the file signature does not match with the expected ones.

```elixir
file = File.read!("application.exe")
Expand Down
Loading