Skip to content

Commit

Permalink
Merge pull request #8 from P-Kelley/patch-1
Browse files Browse the repository at this point in the history
Update p2p.md
  • Loading branch information
Gramps authored Feb 26, 2024
2 parents 6c6f1f5 + 1d16cd5 commit 2bfc3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/p2p.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ To accomplish this, we add a single line of code to our `read_p2p_packet` functi
var packet_code: PackedByteArray = this_packet['data']
# Decompress the array before turning it into a useable dictionary
var readable_data: Dictionary = bytes_to_var(packet_code.decompress_dynamic(-1, File.COMPRESSION_GZIP))
var readable_data: Dictionary = bytes_to_var(packet_code.decompress_dynamic(-1, FileAccess.COMPRESSION_GZIP))

# Print the packet to output
print("Packet: %s" % readable_data)
Expand Down

0 comments on commit 2bfc3e1

Please sign in to comment.