Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Aug 27, 2024
1 parent 3d21eb3 commit a252d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Partly covered by C++ Core Guidelines.
* By default, use signed types ([ES.106](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-nonnegative)).
* By default, use fixed width integer types, e.g. `int32_t` instead of `int`.
* Use constructor notation for very safe integer conversions (where the range is checked) rather than `static_cast`.
* Use a safe form of index checking accessing elements in standard library containers:
* Use a safe form of index checking when accessing elements in standard library containers:

```cpp
if (meshId >= 0 && size_t(meshId) < model.meshes.size())
Expand Down

0 comments on commit a252d98

Please sign in to comment.