Merge 8698e6691d4cc0345d562c4b5250293a5cd75d2d into ef7998951de0c1f474192f90f040ff8acc2294ea
This commit is contained in:
commit
f6ca5029e5
@ -1,7 +1,7 @@
|
||||
$ go run if-else.go
|
||||
$ go run if-else.go
|
||||
7 is odd
|
||||
8 is divisible by 4
|
||||
either 7 or 8 are even
|
||||
either 8 or 7 are even
|
||||
9 has 1 digit
|
||||
|
||||
# There is no [ternary if](https://en.wikipedia.org/wiki/%3F:)
|
||||
|
4
public/if-else
generated
4
public/if-else
generated
@ -151,10 +151,10 @@ in Go, but that the braces are required.</p>
|
||||
</td>
|
||||
<td class="code leading">
|
||||
|
||||
<pre class="chroma"><code><span class="line"><span class="cl"><span class="gp">$</span> go run if-else.go
|
||||
<pre class="chroma"><code><span class="line"><span class="cl"><span class="gp">$</span> go run if-else.go
|
||||
</span></span><span class="line"><span class="cl"><span class="go">7 is odd
|
||||
</span></span></span><span class="line"><span class="cl"><span class="go">8 is divisible by 4
|
||||
</span></span></span><span class="line"><span class="cl"><span class="go">either 7 or 8 are even
|
||||
</span></span></span><span class="line"><span class="cl"><span class="go">either 8 or 7 are even
|
||||
</span></span></span><span class="line"><span class="cl"><span class="go">9 has 1 digit</span></span></span></code></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user