Skip to content

Commit

Permalink
Fix formatting and typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Aug 19, 2023
1 parent 2db12bf commit 83920bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Run on any tag
name: Release a tag

on:
push:
tags: ['*']

name: Release a tag

jobs:
test:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ func (pf *parsedFile) getAllComments(exclude []*regexp.Regexp) []comment {
return comments
}

// getText extracts text from comment. If comment is a special block
// getText extracts text from comment. If the comment is a special block
// (e.g., CGO code), a block of empty lines is returned. If comment contains
// special lines (e.g., tags or indented code examples), they are replaced
// with `specialReplacer` to skip checks for it.
// with `specialReplacer` to skip checks for them.
// The result can be multiline.
func getText(comment *ast.CommentGroup, exclude []*regexp.Regexp) (s string) {
if len(comment.List) == 1 &&
Expand Down

0 comments on commit 83920bb

Please sign in to comment.