Skip to content

Commit 094e386

Browse files
committed
Fix code sequence for initial rules
1 parent d4357bd commit 094e386

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
* Fix code sequence for initial rules
12+
913
### Removed
1014

1115
* Remove unused method `Changelog::title`

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ The `h2` is not a valid unreleased or release section heading.
3838

3939
The document does not have an unreleased section.
4040

41-
### E102
41+
### E101
4242

4343
There is more than one unreleased section heading in the document.
4444

45-
### E201
45+
### E200
4646

4747
The date is not in ISO 8601 format.
4848

49-
### E202
49+
### E201
5050

5151
The yanked token does not match `[YANKED]`.
5252

src/rule.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ rules! {
7070
),
7171
DuplicateUnreleased = (
7272
"There is more than one unreleased section heading in the document.",
73-
"E102",
73+
"E101",
7474
"Duplicate unreleased section `{}`",
7575
),
7676
// E200 Release
7777
InvalidDate = (
7878
"The date is not in ISO 8601 format.",
79-
"E201",
79+
"E200",
8080
"Invalid date `{}`",
8181
),
8282
InvalidYanked = (
8383
"The yanked token does not match `[YANKED]`.",
84-
"E202",
84+
"E201",
8585
"Invalid [YANKED] format `{}`",
8686
),
8787
// E300 Changes

0 commit comments

Comments
 (0)