doc: remove snake_case consts for now

pull/4982/head
Alexander Medvednikov 2020-05-21 16:34:57 +02:00 committed by GitHub
parent bf7ab19d09
commit 7e55261c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -960,11 +960,13 @@ println(blue)
Global variables are not allowed, so this can be really useful.
<!--
When naming constants, snake_case must be used.
Many people prefer all caps consts: `TOP_CITIES`. This wouldn't work
well in V, because consts are a lot more powerful than in other languages.
They can represent complex structures, and this is used quite often since there
are no globals:
-->
```v
println('Top cities: $TOP_CITIES.filter(.usa)')