Explorar o código

Rename `print_x_times` to `print_n_times` in Cross-language scripting (#6143)

Change code to match the rest of the documentation. C# examples
use PrintNTimes and calls print_n_times, so change gdscript to match.
David Briscoe %!s(int64=3) %!d(string=hai) anos
pai
achega
692a64a773
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/scripting/cross_language_scripting.rst

+ 1 - 1
tutorials/scripting/cross_language_scripting.rst

@@ -29,7 +29,7 @@ The following two scripts will be used as references throughout this page.
         for element in arr:
             print(element)
 
-    func print_x_times(msg : String, n : int) -> void:
+    func print_n_times(msg : String, n : int) -> void:
         for i in range(n):
             print(msg)