Skip to content

Commit 7570870

Browse files
committed
Improve the document.
1 parent 319681d commit 7570870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/docs/clang-tidy/checks/portability/avoid-pragma-once.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ some environments.
1313
Some older or specialized C/C++ compilers, particularly in embedded systems,
1414
may not fully support ``#pragma once``.
1515

16-
It can also fail in certain file system configurations,like network drives
16+
It can also fail in certain file system configurations, like network drives
1717
or complex symbolic links, potentially leading to compilation issues.
1818

1919
Consider the following header file:
@@ -29,7 +29,7 @@ The warning suggests using include guards:
2929
.. code:: c++
3030

3131
// my_header.h
32-
#ifndef PATH_TO_MY_HEADER_H
32+
#ifndef PATH_TO_MY_HEADER_H // Good: use include guards.
3333
#define PATH_TO_MY_HEADER_H
3434

3535
#endif // PATH_TO_MY_HEADER_H

0 commit comments

Comments
 (0)