瀏覽代碼

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 2 年之前
父節點
當前提交
385453decb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)