Explorar o código

Fix void typed function code sample in GDScript basics (#5281)

Andrew Kim %!s(int64=4) %!d(string=hai) anos
pai
achega
07bdedd7af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -755,7 +755,7 @@ return early with the ``return`` keyword, but they can't return any value.
 
 ::
 
-    void_function() -> void:
+    func void_function() -> void:
         return # Can't return a value
 
 .. note:: Non-void functions must **always** return a value, so if your code has