Skip to content

Commit

Permalink
fix example case in dagcbor docs (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
flicknow authored Feb 22, 2024
1 parent f1c7699 commit 6e6bdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hexpds/dagcbor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Hexpds.DagCBOR do
iex> Hexpds.DagCBOR.encode_json(Jason.encode!(%{apple: "banana", cranberry: "dragonfruit"}))
...> |> elem(1)
...> |> Base.encode16()
"C2A2656170706C656662616E616E61696372616E62657272796B647261676F6E6672756974"
"A2656170706C656662616E616E61696372616E62657272796B647261676F6E6672756974"
"""
def encode_json(json) do
Expand Down

0 comments on commit 6e6bdc9

Please sign in to comment.