Skip to content

Commit 4445122

Browse files
fix: style
1 parent aefc307 commit 4445122

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/c/comment.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ title: "Comments"
33
description: Auto‑generated from cppreference
44
---
55

6-
import { Desc, DescList, DocLink, Revision } from '@components/index';
6+
import { Desc, DescList, DocLink, Revision, RevisionBlock } from '@components/index';
77

88
Comments serve as a sort of in-code documentation. When inserted into a program, they are effectively ignored by the compiler; they are solely intended to be used as notes by the humans that read source code.
99

1010
### Syntax
1111

12-
(1) `/*` <span class="t-spar">comment</span> `*/`
13-
(2) `//` <span class="t-spar">comment</span> <Revision since="C99">(since C99)</Revision>
12+
* (1) `/*` <span class="t-spar">comment</span> `*/`
13+
* (2) `//` <span class="t-spar">comment</span> <Revision since="C99">(since C99)</Revision>
1414

1515
1) Often known as "C-style" or "multi-line" comments.
1616
2) Often known as "C++-style" or "single-line" comments.
@@ -23,7 +23,7 @@ C-style comments are usually used to comment large blocks of text or small fragm
2323

2424
Except within a <DocLink src="/c/language/character_constant">character constant</DocLink>, a <DocLink src="/c/language/string_literal">string literal</DocLink>, or a comment, the characters `/*` introduce a comment. The contents of such a comment are examined only to identify multibyte characters and to find the characters `*/` that terminate the comment. C-style comments cannot be nested.
2525

26-
<Revision since="C99">
26+
<RevisionBlock since="C99">
2727

2828
### C++-style
2929

@@ -154,4 +154,4 @@ Hello, again
154154
<Desc>
155155
<DocLink slot="item" src="/cpp/comments">C++ documentation</DocLink> for <span>Comments</span>
156156
</Desc>
157-
</DescList>
157+
</DescList>

0 commit comments

Comments
 (0)