rougify style github

This commit is contained in:
Sergey Zubkov
2020-08-03 17:21:49 -04:00
parent 44d9e1cd3c
commit fd6ca8c6f0
3 changed files with 218 additions and 8 deletions

View File

@@ -540,9 +540,11 @@ Any programmer using these guidelines should know the [guidelines support librar
##### Example
change_speed(double s); // bad: what does s signify?
// ...
change_speed(2.3);
```cpp
change_speed(double s); // bad: what does s signify?
// ...
change_speed(2.3);
```
A better approach is to be explicit about the meaning of the double (new speed or delta on old speed?) and the unit used: