Skip to content

Instantly share code, notes, and snippets.

@alco
Created March 10, 2014 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alco/9472967 to your computer and use it in GitHub Desktop.
Save alco/9472967 to your computer and use it in GitHub Desktop.
iex(1)> <<a :: utf8, b>> = <<1, "hello">>
** (MatchError) no match of right hand side value: <<1, 104, 101, 108, 108, 111>>
iex(1)> <<a :: utf8, b :: binary>> = <<1, "hello">>
<<1, 104, 101, 108, 108, 111>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment