From f3cbb5e1176048969e778581d2e935604e27daac Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Fri, 6 Sep 2024 10:19:36 +0200 Subject: added another example to contributing.md --- contributing.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contributing.md b/contributing.md index a917166..cc22cd5 100644 --- a/contributing.md +++ b/contributing.md @@ -181,6 +181,18 @@ Print_color(Product_info::red); // Error: cannot convert Product_info to int. std::size_t i = 0; // use this instead of using a int double x = 0.0; ``` +- comment style guide, you can use TODO:, FIXME:, NOTE:, or HACK: as admonitions when needed. + +```cpp +// Compute the first 10,000 decimals of Pi. +// FIXME: Don't crash when computing the 1,337th decimal due to `increment` +// being negative. +``` +bad example +```cpp +// Draw loading screen. +draw_load_screen(); +``` ## CMakeLists specific -- cgit v1.2.3