Skip to content

Commit

Permalink
Tiny fiexs detected by golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Aug 23, 2019
1 parent 4d4f34d commit 739eee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ExampleDoc_spec() {
func ExampleDocf() {
libName := "github.com/MakeNowJust/heredoc"
author := "TSUYUSATO Kitsune (@MakeNowJust)"
fmt.Printf(heredoc.Docf(`
fmt.Print(heredoc.Docf(`
Library Name : %s
Author : %s
Repository URL: http://%s.git
Expand Down
2 changes: 1 addition & 1 deletion heredoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func getMinIndent(lines []string, skipFirstLine bool) int {
}

indentSize := 0
for _, r := range []rune(line) {
for _, r := range line {
if isSpace(r) {
indentSize++
} else {
Expand Down

0 comments on commit 739eee8

Please sign in to comment.