fix typo in zipreader doc
This commit is contained in:
parent
c17f17eb98
commit
fc260cade8
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
func read_zip_file():
|
func read_zip_file():
|
||||||
var reader := ZIPReader.new()
|
var reader := ZIPReader.new()
|
||||||
var err := reader.open("user://archive.zip")
|
var err := reader.open("user://archive.zip")
|
||||||
if err == OK:
|
if err != OK:
|
||||||
return PackedByteArray()
|
return PackedByteArray()
|
||||||
var res := reader.read_file("hello.txt")
|
var res := reader.read_file("hello.txt")
|
||||||
reader.close()
|
reader.close()
|
||||||
|
|
Loading…
Reference in a new issue