Fix typo in variables page document
in the document, the given syntax has a typo.
This commit is contained in:
parent
15d8fe75b8
commit
59cb2683d1
2
public/variables
generated
2
public/variables
generated
@ -122,7 +122,7 @@ zero value for an <code>int</code> is <code>0</code>.</p>
|
|||||||
<td class="docs">
|
<td class="docs">
|
||||||
<p>The <code>:=</code> syntax is shorthand for declaring and
|
<p>The <code>:=</code> syntax is shorthand for declaring and
|
||||||
initializing a variable, e.g. for
|
initializing a variable, e.g. for
|
||||||
<code>var f string = "apple"</code> in this case.
|
<code>var f string := "apple"</code> in this case.
|
||||||
This syntax is only available inside functions.</p>
|
This syntax is only available inside functions.</p>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user