Skip to content

Commit

Permalink
fixed erroneous code (#45)
Browse files Browse the repository at this point in the history
thanks for the contribution!
  • Loading branch information
xiaodaigh authored and rjkat committed Dec 17, 2019
1 parent b609b35 commit 25848a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ val = Example.SimpleType(2)
open("example.bin", "w") do f FlatBuffers.serialize(f, val) end

# read the value back again from file
val2 = open("example.bin", "r") do f Example.SimpleType(f) end
val2 = open("example.bin", "r") do f
FlatBuffers.deserialize(f, Example.SimpleType)
end
```
In addition, this package provides the following types and methods, which are useful
when inspecting and constructing flatbuffers:
Expand Down

0 comments on commit 25848a1

Please sign in to comment.