chore: improve wording, typo (#16)

main
sudo pacman -Syu 2021-04-26 09:54:31 +07:00 committed by GitHub
parent 52da6c9b2b
commit 846a150cfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ func ParseMarkdown(data string) []markdown.Node {
lines := strings.Split(data, string(markdown.NewlineToken))
nodes := markdown.Parse(lines)
// remove title
// Remove title
if len(nodes) > 0 && markdown.Equal(nodes[0], markdown.NewHeader(firstLevel, title)) {
nodes = nodes[1:]
}

View File

@ -112,7 +112,7 @@ func TestGenerateMarkdown(t *testing.T) {
},
},
scopes: map[string]struct{}{
"a": struct{}{},
"a": {},
},
version: "v1.0.0",
when: time.Date(2020, 3, 22, 0, 0, 0, 0, time.Local),

View File

@ -5,7 +5,7 @@ const (
FeatType = "feat"
BuildType = "build"
ChoreType = "chore"
CiType = "ci"
CIType = "ci"
DocsType = "docs"
StyleType = "style"
RefactorType = "refactor"