Browse Source

Merge pull request #68581 from oganm/oganm/master

fix typo in ZIPReader doc
Rémi Verschelde 2 years ago
parent
commit
e3a51e53ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/zip/doc_classes/ZIPReader.xml

+ 1 - 1
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()