diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2020-03-25 14:08:46 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2020-03-25 14:08:46 +0300 |
commit | c3c0c16c40a326868d4a010c249b6465bcf8847a (patch) | |
tree | a43260fd4f9b410dad1e3af8dba4bce27b583c26 /STYLE.md | |
parent | 18895a7279c38b757a660ab56d2446dfad54519d (diff) | |
parent | 6b2a9261801d52735620da070e96bb820ca9cedd (diff) |
Merge branch 'pks-style-ordering' into 'master'
Add a note on ordering of functions and types
See merge request gitlab-org/gitaly!1949
Diffstat (limited to 'STYLE.md')
-rw-r--r-- | STYLE.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -89,6 +89,12 @@ variables. In Gitaly we don't use this feature. If the function returns one or more values, then always pass them to `return`. +## Ordering + +### Declare types before their first use + +A type should be declared before its first use. + ## Tests ### Table-driven tests |