mirror of
https://github.com/neovim/neovim.git
synced 2026-01-08 06:13:14 +00:00
docs(dev-style): remove rule about variable declarations (#20446)
The other style rules such as "initialize variables in the declaration" should already take care of this rule automatically.
This commit is contained in:
@@ -181,13 +181,6 @@ Use `bool` to represent boolean values. >
|
||||
int loaded = 1; // BAD: loaded should have type bool.
|
||||
|
||||
|
||||
Variable declarations ~
|
||||
|
||||
Declare only one variable per line. >
|
||||
|
||||
int i, j = 1
|
||||
|
||||
|
||||
Conditions ~
|
||||
|
||||
Don't use "yoda-conditions". Use at most one assignment per condition. >
|
||||
|
||||
Reference in New Issue
Block a user