소스 검색

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 년 전
부모
커밋
692a64a773
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)