summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Ogan Mancarcı <ogan.mancarcii@gmail.com>2022-11-12 14:24:42 -0800
committerGitHub <noreply@github.com>2022-11-12 14:24:42 -0800
commitfc260cade897b800ecbd9cad686fd3ef2b8694ae (patch)
tree649711b1523d32d026d3f72ccda144c1476f2dc0
parentc17f17eb98188a7134c85bdbdf0123127c462046 (diff)
fix typo in zipreader doc
-rw-r--r--modules/zip/doc_classes/ZIPReader.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zip/doc_classes/ZIPReader.xml b/modules/zip/doc_classes/ZIPReader.xml
index 717116a531..055201b105 100644
--- a/modules/zip/doc_classes/ZIPReader.xml
+++ b/modules/zip/doc_classes/ZIPReader.xml
@@ -9,7 +9,7 @@
func read_zip_file():
var reader := ZIPReader.new()
var err := reader.open("user://archive.zip")
- if err == OK:
+ if err != OK:
return PackedByteArray()
var res := reader.read_file("hello.txt")
reader.close()