@@ -1280,7 +1280,7 @@ function allowed()
1280
1280
1281
1281
## 11. Attributes
1282
1282
1283
- ### 12 .1 Basics
1283
+ ### 11 .1 Basics
1284
1284
1285
1285
Attribute names must immediately follow the opening attribute block indicator `#[` with no space.
1286
1286
@@ -1289,7 +1289,7 @@ If an attribute has no arguments, the `()` MUST be omitted.
1289
1289
The closing attribute block indicator `]` MUST follow the last character of the attribute name or the closing `)` of
1290
1290
its argument list, with no preceding space.
1291
1291
1292
- ### 12 .2 Placement
1292
+ ### 11 .2 Placement
1293
1293
1294
1294
Attributes on classes, methods, functions, constants and properties MUST
1295
1295
be placed on their own line, immediately prior to the structure being described.
@@ -1306,10 +1306,10 @@ between the docblock and attributes, or the attributes and the structure.
1306
1306
If two separate attribute blocks (denoted by separate `#[]` markers) are used in a multi-line context,
1307
1307
they MUST be on separate lines with no blank lines between them.
1308
1308
1309
- ### 12 .3 Compound attributes
1309
+ ### 11 .3 Compound attributes
1310
1310
1311
1311
Multiple attributes MAY be placed in the same attribute block (`#[]`) if and only if the entire block is listed on a
1312
- single line. They must be separated by a comma with a space following but no space preceding. If the attribute list
1312
+ single line and each attribute is reasonably short . They MUST be separated by a comma with a space following but no space preceding. If the attribute list
1313
1313
is split into multiple lines for any reason, then the attributes MUST be placed in separate attribute blocks.
1314
1314
Those blocks may themselves contain multiple attributes provided this rule is respected.
1315
1315
@@ -1318,7 +1318,7 @@ If an attribute's argument list is split into multiple lines for any reason, the
1318
1318
* The attribute MUST be the only one in its attribute block.
1319
1319
* The attribute arguments MUST follow the same rules as defined for multiline function calls.
1320
1320
1321
- ### 12 .4 Example
1321
+ ### 11 .4 Example
1322
1322
1323
1323
The following is an example of valid attribute usage.
1324
1324
0 commit comments