Skip to content

Commit 28018d0

Browse files
committed
fix: mark abstract-declarator in function parameter-list as optional
1 parent 43659f2 commit 28018d0

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/content/docs/cpp/language/function.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,17 @@ The parameter list determines the arguments that can be specified when the funct
303303
<Decl slot="decl">
304304
<RevisionBlock until="C++11" noborder>
305305
```cpp
306-
/* decl-specifier-seq */ /* declarator */ = /* initializer */
306+
/* decl-specifier-seq */ /* declarator */
307+
= /* initializer */
307308
```
308309
</RevisionBlock>
309310
</Decl>
310311
<Decl slot="decl">
311312
<RevisionBlock since="C++11" noborder>
312313
```cpp
313314
/* attr (optional) */
314-
/* decl-specifier-seq */ /* declarator */ = /* initializer */
315+
/* decl-specifier-seq */ /* declarator */
316+
= /* initializer */
315317
```
316318
</RevisionBlock>
317319
</Decl>
@@ -327,15 +329,15 @@ The parameter list determines the arguments that can be specified when the funct
327329
<Decl slot="decl">
328330
<RevisionBlock until="C++11" noborder>
329331
```cpp
330-
/* decl-specifier-seq */ /* abstract-declarator */
332+
/* decl-specifier-seq */ /* abstract-declarator (optional) */
331333
```
332334
</RevisionBlock>
333335
</Decl>
334336
<Decl slot="decl">
335337
<RevisionBlock since="C++11" noborder>
336338
```cpp
337339
/* attr (optional) */
338-
/* decl-specifier-seq */ /* abstract-declarator */
340+
/* decl-specifier-seq */ /* abstract-declarator (optional) */
339341
```
340342
</RevisionBlock>
341343
</Decl>
@@ -352,7 +354,7 @@ The parameter list determines the arguments that can be specified when the funct
352354
<RevisionBlock since="C++23" noborder>
353355
```cpp
354356
/* attr (optional) */
355-
this /* decl-specifier-seq */ /* abstract-declarator */
357+
this /* decl-specifier-seq */ /* abstract-declarator (optional) */
356358
```
357359
</RevisionBlock>
358360
</Decl>
@@ -364,15 +366,17 @@ The parameter list determines the arguments that can be specified when the funct
364366
<Decl slot="decl">
365367
<RevisionBlock until="C++11" noborder>
366368
```cpp
367-
/* decl-specifier-seq */ /* abstract-declarator */ = /* initializer */
369+
/* decl-specifier-seq */ /* abstract-declarator (optional) */
370+
= /* initializer */
368371
```
369372
</RevisionBlock>
370373
</Decl>
371374
<Decl slot="decl">
372375
<RevisionBlock since="C++11" noborder>
373376
```cpp
374377
/* attr (optional) */
375-
/* decl-specifier-seq */ /* abstract-declarator */ = /* initializer */
378+
/* decl-specifier-seq */ /* abstract-declarator (optional) */
379+
= /* initializer */
376380
```
377381
</RevisionBlock>
378382
</Decl>

0 commit comments

Comments
 (0)