9 Commits

Author SHA1 Message Date
Eli Bendersky
41dd5d97b1 Add sample of logical operators in if statements
Fixes #494
2023-10-28 08:18:19 -07:00
Eli Bendersky
0650d74678 Slight rewording 2022-10-25 06:02:53 -07:00
Aditya Sood
9ba0fd08de
Minor addition to if-else text on declarations (#450)
* Minor addition to if-else text on declarations

Extremely minor addition to if-else text on declarations preceding conditionals, by explicitly clarifying that variables declared are only available in branches succeeding the declaration, not all the branches in the if-else ladder (i.e. preceding branches will not have it in their scope)

This edit might be redundant since variables in Golang can only be used after declaration, but to a complete novice the original wording of "...any variables declared in this statement are available in *all* branches..." might be a little misleading and appear to say that the variable is in-scope for the preceding branches as well (as this seems to be a very Golang-specific semantic that other high-level languages like C/C++, Java, Scala, Kotlin etc don't support; and so it will be a brand new paradigm for developers coming from such languages).

Thanks!

* Increment: Include changes in source .go file for #450
2022-10-25 06:00:36 -07:00
Eli Bendersky
7c160440be Use tabs as the canonical source indentation in git
Space conversion is done during generation only. Fixes #192
2019-06-04 07:30:58 -07:00
Steve Krulewitz
684013f5e0 Fix a few small typos. 2015-02-22 21:52:25 -08:00
Mark McGranaghan
0685950428 wrong word 2013-05-11 14:37:58 -07:00
Mark McGranaghan
fa7065f07a spelling 2012-10-13 10:44:53 -07:00
Mark McGranaghan
b70e1e7f7c publish if/else 2012-10-13 09:17:44 -07:00
Mark McGranaghan
8daa226a48 lean into examples 2012-10-09 21:02:12 -07:00