Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed "Output" format (#2202) - constants and conditionals-if #2270

Merged
merged 2 commits into from
Jun 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concepts/conditionals-if/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if v := 2 * num; v > 10 {
} else {
fmt.Println(num)
}
// Output: 14
// => 14
yogeshCt3 marked this conversation as resolved.
Show resolved Hide resolved
```

> Note: any variables created in the initialization statement go out of scope after the end of the if statement.
Expand Down
2 changes: 1 addition & 1 deletion concepts/conditionals-if/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if v := 2 * num; v > 10 {
} else {
fmt.Println(num)
}
// Output: 14
// => 14
yogeshCt3 marked this conversation as resolved.
Show resolved Hide resolved
```

> Note: any variables created in the initialization statement go out of scope after the end of the if statement.
4 changes: 2 additions & 2 deletions concepts/constants/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func main() {
const m = map[int]int{2: 8}
const s = []string{"exercism", "v3"}
}
// Output: const initializer map[int]int literal is not a constant
// Output: const initializer []string literal is not a constant
// => const initializer map[int]int literal is not a constant
// => const initializer []string literal is not a constant
```

For a fuller explanation please see the resources [here][const2], [here][const3], and [here][const4].
Expand Down
2 changes: 1 addition & 1 deletion concepts/constants/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ const (
g
)
fmt.Print(a, b, c, d, e, f, g)
// Output: 9 9 9 3 4 5 6
// => 9 9 9 3 4 5 6
yogeshCt3 marked this conversation as resolved.
Show resolved Hide resolved
```