Browse Source

Fix markup in the GDScript style guide (#4095)

Co-authored-by: Hugo Locurcio <[email protected]>
H​eikki H​okkanen 4 years ago
parent
commit
5df02c1543
1 changed files with 2 additions and 3 deletions
  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
 ~~~~~~~~~~~~~~
 
-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
 the function's return type. For example, ``get_node()`` cannot infer a type