Skip to content

Commit a0deae5

Browse files
author
Denis Krivak
committed
Fix typo.
1 parent 2d9c8a6 commit a0deae5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func checkPeriod(comment string) (pos position, ok bool) {
165165
// checkCapital checks that each sentense of the text starts with
166166
// a capital letter.
167167
// NOTE: First letter is not checked in declaration comments, because they
168-
// can describe unexported functions, which start from small letter.
168+
// can describe unexported functions, which start with small letter.
169169
func checkCapital(comment string, skipFirst bool) (pp []position) {
170170
// Remove common abbreviations from the comment
171171
for _, abbr := range abbreviations {

checks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func TestCheckCapital(t *testing.T) {
165165
},
166166
},
167167
{
168-
name: "multiple sentences with mixed cases",
168+
name: "multiple sentences with cyrillic letters",
169169
text: "Кириллица? кириллица!",
170170
skipFirst: false,
171171
issues: []position{

godot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type comment struct {
3838
lines []string // unmodified lines from file
3939
text string // concatenated `lines` with special parts excluded
4040
start token.Position // position of the first symbol in comment
41-
decl bool // whether comment is a special one (should not be checked)
41+
decl bool // whether comment is a declaration comment
4242
}
4343

4444
// Run runs this linter on the provided code.

0 commit comments

Comments
 (0)