Skip to content

Commit 52c9737

Browse files
committed
Tweak language around compound attributes.
1 parent b7ab5ab commit 52c9737

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ function allowed()
12801280

12811281
## 11. Attributes
12821282

1283-
### 12.1 Basics
1283+
### 11.1 Basics
12841284

12851285
Attribute names must immediately follow the opening attribute block indicator `#[` with no space.
12861286

@@ -1289,7 +1289,7 @@ If an attribute has no arguments, the `()` MUST be omitted.
12891289
The closing attribute block indicator `]` MUST follow the last character of the attribute name or the closing `)` of
12901290
its argument list, with no preceding space.
12911291

1292-
### 12.2 Placement
1292+
### 11.2 Placement
12931293

12941294
Attributes on classes, methods, functions, constants and properties MUST
12951295
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.
13061306
If two separate attribute blocks (denoted by separate `#[]` markers) are used in a multi-line context,
13071307
they MUST be on separate lines with no blank lines between them.
13081308

1309-
### 12.3 Compound attributes
1309+
### 11.3 Compound attributes
13101310

13111311
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
13131313
is split into multiple lines for any reason, then the attributes MUST be placed in separate attribute blocks.
13141314
Those blocks may themselves contain multiple attributes provided this rule is respected.
13151315

@@ -1318,7 +1318,7 @@ If an attribute's argument list is split into multiple lines for any reason, the
13181318
* The attribute MUST be the only one in its attribute block.
13191319
* The attribute arguments MUST follow the same rules as defined for multiline function calls.
13201320
1321-
### 12.4 Example
1321+
### 11.4 Example
13221322
13231323
The following is an example of valid attribute usage.
13241324

0 commit comments

Comments
 (0)