Slight rewording
This commit is contained in:
parent
9ba0fd08de
commit
0650d74678
@ -21,7 +21,7 @@ func main() {
|
|||||||
|
|
||||||
// A statement can precede conditionals; any variables
|
// A statement can precede conditionals; any variables
|
||||||
// declared in this statement are available in the current
|
// declared in this statement are available in the current
|
||||||
// and all the succeeding branches.
|
// and all subsequent branches.
|
||||||
if num := 9; num < 0 {
|
if num := 9; num < 0 {
|
||||||
fmt.Println(num, "is negative")
|
fmt.Println(num, "is negative")
|
||||||
} else if num < 10 {
|
} else if num < 10 {
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
bbac731541876062076e3dea9a2b536988d7739d
|
d6a962236fc1296684cd1ffb2d95d131ed84abde
|
||||||
_5PfTs6dNhr
|
U7xcpdutgCJ
|
||||||
|
4
public/if-else
generated
4
public/if-else
generated
@ -42,7 +42,7 @@ straight-forward.</p>
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="code leading">
|
<td class="code leading">
|
||||||
<a href="https://go.dev/play/p/_5PfTs6dNhr"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
<a href="https://go.dev/play/p/U7xcpdutgCJ"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||||
<pre class="chroma"><span class="kn">package</span> <span class="nx">main</span>
|
<pre class="chroma"><span class="kn">package</span> <span class="nx">main</span>
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
@ -106,7 +106,7 @@ straight-forward.</p>
|
|||||||
<td class="docs">
|
<td class="docs">
|
||||||
<p>A statement can precede conditionals; any variables
|
<p>A statement can precede conditionals; any variables
|
||||||
declared in this statement are available in the current
|
declared in this statement are available in the current
|
||||||
and all the succeeding branches.</p>
|
and all subsequent branches.</p>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="code leading">
|
<td class="code leading">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user