fix: newline in question markdowns

This commit is contained in:
Inanc Gumus
2018-10-19 20:38:00 +03:00
parent dc4aaea4fa
commit dc7588fc5c
7 changed files with 2 additions and 101 deletions

View File

@ -18,7 +18,6 @@
> **1:** "C"onst should be just "c"onst.
>
>
## Which code below is correct?
@ -28,13 +27,10 @@
> **1:** `s` not a constant.
>
>
> **2:** `len` function can be used as an initial value to a constant, when the argument to `len` is also a constant.
>
>
> **3:** You cannot call functions while initializing a constant.
>
>
## Which explanation below is correct for the following code?
@ -48,10 +44,8 @@ porsche := speed * 3
> **2:** speed has no type.
>
>
> **3:** A variable cannot be typeless.
>
>
## How to fix the following code?
@ -65,7 +59,6 @@ spell = "Abracadabra"
> **1:** A constant always have to be initialized to a value. And, sometimes the type declaration is not necessary.
>
>
> **2-3:** That's a variable not a constant.
>
@ -100,13 +93,10 @@ fmt.Print(int64(total) * x)
> **1:** Now, the total constant is typeless, so it can be used with the x variable.
>
>
> **2:** There's still a type mismatch. x is int not int64.
>
>
> **3:** total is already int64. No need to convert it again.
>
>
## What are the values of the following constants?
@ -123,5 +113,4 @@ const (
4. Yes=2 No=7 Both=12 *CORRECT*
> **3:** iota starts at 0, not 1.
>
>