Skip to content

Commit

Permalink
Update 012-working-with-binary-file-formats.md
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Apr 18, 2014
1 parent 601495b commit 420587b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/v2/012-working-with-binary-file-formats.md
Expand Up @@ -191,7 +191,7 @@ in the following example:

```ruby
header = ["BM", 70, 0, 0, 54].pack("A2Vv2V")
p header.bytes.map { |e| e.to_s(16).rjust(2,"0") }
p header.bytes.map { |e| "%.2x" % e }

=begin expected output (NOTE: reformatted below for easier reading)
["42", "4d",
Expand Down

0 comments on commit 420587b

Please sign in to comment.