]> git.ipfire.org Git - thirdparty/util-linux.git/commit
docs: add non-return function and if shorthand tips
authorSami Kerola <kerolasa@iki.fi>
Sat, 17 Sep 2011 12:35:15 +0000 (14:35 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 17 Sep 2011 13:07:52 +0000 (15:07 +0200)
commit0c121348742d1f59751a72d37c4f656b21a08068
tree14179d972c2db9e5e52d83d3eb115b693e946304
parent6f162034d0fc9a49ab1dcf2b773fa9677215cba3
docs: add non-return function and if shorthand tips

Non-return functions should not be combined with `else' clause.

The if shorthands `var = e ? t : f;' need to fit to single line,
and if that does not look good use normal "if else" syntax.

Both tips are mentioned in email bellow.

http://www.spinics.net/lists/util-linux-ng/msg05152.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Documentation/howto-contribute.txt