doc/manual/style: Do not use 'Yoda conditions'
commit134d7d5a5876a53a10ecb2eeac8d193bdddcea81
authorMarc Schink <dev@zapb.de>
Fri, 2 Apr 2021 09:17:00 +0000 (2 11:17 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 11 Apr 2021 20:27:34 +0000 (11 21:27 +0100)
tree0e490b95a24c4fc7d3edb85ca8e25c87d6ed4ade
parent96aaa77f72a721f058f3863f270c2ba3d8d68871
doc/manual/style: Do not use 'Yoda conditions'

For more details, see:
https://en.wikipedia.org/wiki/Yoda_conditions
https://sektorvanskijlen.wordpress.com/2019/05/16/conditional-inversion-very-harmful-myth/

Change-Id: If1a8a5f1d0fd345b7cc0c7b5dee6d0d47f9d7fc2
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6132
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/manual/style.txt