Remove uses of implicit static typing from the documentation
This commit is contained in:
@ -7,8 +7,8 @@
|
||||
This class implements a writer that allows storing the multiple blobs in a zip archive.
|
||||
[codeblock]
|
||||
func write_zip_file():
|
||||
var writer := ZIPPacker.new()
|
||||
var err := writer.open("user://archive.zip")
|
||||
var writer = ZIPPacker.new()
|
||||
var err = writer.open("user://archive.zip")
|
||||
if err != OK:
|
||||
return err
|
||||
writer.start_file("hello.txt")
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
This class implements a reader that can extract the content of individual files inside a zip archive.
|
||||
[codeblock]
|
||||
func read_zip_file():
|
||||
var reader := ZIPReader.new()
|
||||
var err := reader.open("user://archive.zip")
|
||||
var reader = ZIPReader.new()
|
||||
var err = reader.open("user://archive.zip")
|
||||
if err != OK:
|
||||
return PackedByteArray()
|
||||
var res := reader.read_file("hello.txt")
|
||||
var res = reader.read_file("hello.txt")
|
||||
reader.close()
|
||||
return res
|
||||
[/codeblock]
|
||||
|
||||
Reference in New Issue
Block a user