mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Doc: Fix typo in File documentation
Fixes #19383.
(cherry picked from commit 8569a0db3c)
This commit is contained in:
@@ -9,13 +9,13 @@
|
|||||||
[codeblock]
|
[codeblock]
|
||||||
func save(content):
|
func save(content):
|
||||||
var file = File.new()
|
var file = File.new()
|
||||||
file.open("user://save_game.dat", file.WRITE)
|
file.open("user://save_game.dat", File.WRITE)
|
||||||
file.store_string(content)
|
file.store_string(content)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
func load():
|
func load():
|
||||||
var file = File.new()
|
var file = File.new()
|
||||||
file.open("user://save_game.dat", file.READ)
|
file.open("user://save_game.dat", File.READ)
|
||||||
var content = file.get_as_text()
|
var content = file.get_as_text()
|
||||||
file.close()
|
file.close()
|
||||||
return content
|
return content
|
||||||
|
|||||||
Reference in New Issue
Block a user