Skip to content

Commit

Permalink
adds examples for invalid data types #11
Browse files Browse the repository at this point in the history
  • Loading branch information
RobStallion committed Jan 29, 2019
1 parent 8a21996 commit ce987d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ defmodule Cid do
iex> Cid.cid(%{key: "value"})
"zb2rhkN6szWhAmBFjjP8RSczv2YVNLnG1tz1Q7FyfEp8LssNZ"
iex> Cid.cid(1234)
"invalid data type"
iex> Cid.cid([1,2,3,"four"])
"invalid data type"
"""
def cid(value) do
value
Expand Down

0 comments on commit ce987d2

Please sign in to comment.