mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
Documentation: Remove redundancy in CodingStyle.md
This is a fairly small change; removed the statement "Pointer and reference types in C++ code" as it does not provide any additional knowledge that contributors are or will be aware of after further reading into the "Pointers and References" section. It seems unnecessary and redundant given the sentence adjacent to it.
This commit is contained in:
parent
65d4ac1c14
commit
b9980ffd07
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/kemzeb 🔰 Commit: https://github.com/SerenityOS/serenity/commit/b9980ffd077 Pull-request: https://github.com/SerenityOS/serenity/pull/7755
@ -261,8 +261,7 @@ for (auto it = children.begin(); it != children.end(); ++it)
|
|||||||
|
|
||||||
### Pointers and References
|
### Pointers and References
|
||||||
|
|
||||||
[](#pointers-cpp) **Pointer and reference types in C++ code**
|
[](#pointers-cpp) Both pointer types and reference types should be written with no space between the type name and the `*` or `&`.
|
||||||
Both pointer types and reference types should be written with no space between the type name and the `*` or `&`.
|
|
||||||
|
|
||||||
[](#pointers-out-argument) An out argument of a function should be passed by reference except rare cases where it is optional in which case it should be passed by pointer.
|
[](#pointers-out-argument) An out argument of a function should be passed by reference except rare cases where it is optional in which case it should be passed by pointer.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user