Преглед на файлове

Fix markup in the GDScript style guide (#4095)

Co-authored-by: Hugo Locurcio <[email protected]>
H​eikki H​okkanen преди 5 години
родител
ревизия
5df02c1543
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      getting_started/scripting/gdscript/gdscript_styleguide.rst

+ 2 - 3
getting_started/scripting/gdscript/gdscript_styleguide.rst

@@ -753,10 +753,9 @@ To declare the return type of a function, use ``-> <type>``:
 Inferred types
 Inferred types
 ~~~~~~~~~~~~~~
 ~~~~~~~~~~~~~~
 
 
-In most cases you can let the compiler infer the type, using ``:=``:
+In most cases you can let the compiler infer the type, using ``:=``::
 
 
-::
-   var health := 0  # The compiler will use the int type.
+    var health := 0  # The compiler will use the int type.
 
 
 However, in a few cases when context is missing, the compiler falls back to
 However, in a few cases when context is missing, the compiler falls back to
 the function's return type. For example, ``get_node()`` cannot infer a type
 the function's return type. For example, ``get_node()`` cannot infer a type