Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 4, 2021
1 parent 2d9c8a6 commit a0deae5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func checkPeriod(comment string) (pos position, ok bool) {
// checkCapital checks that each sentense of the text starts with
// a capital letter.
// NOTE: First letter is not checked in declaration comments, because they
// can describe unexported functions, which start from small letter.
// can describe unexported functions, which start with small letter.
func checkCapital(comment string, skipFirst bool) (pp []position) {
// Remove common abbreviations from the comment
for _, abbr := range abbreviations {
Expand Down
2 changes: 1 addition & 1 deletion checks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func TestCheckCapital(t *testing.T) {
},
},
{
name: "multiple sentences with mixed cases",
name: "multiple sentences with cyrillic letters",
text: "Кириллица? кириллица!",
skipFirst: false,
issues: []position{
Expand Down
2 changes: 1 addition & 1 deletion godot.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type comment struct {
lines []string // unmodified lines from file
text string // concatenated `lines` with special parts excluded
start token.Position // position of the first symbol in comment
decl bool // whether comment is a special one (should not be checked)
decl bool // whether comment is a declaration comment
}

// Run runs this linter on the provided code.
Expand Down

0 comments on commit a0deae5

Please sign in to comment.