Skip to content

Commit

Permalink
fix typos in docs (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Jan 6, 2025
1 parent 5105fb2 commit 8ccb7b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nilnesserr = nilness + nilerr

`nilnesserr` is a linter for report return nil error in go. It combines the features of [nilness](https://cs.opensource.google/go/x/tools/+/refs/tags/v0.28.0:go/analysis/passes/nilness/nilness.go) and [nilerr](https://github.com/gostaticanalysis/nilerr), providing a concise way to detect return an unrelated/nil-values error.
`nilnesserr` is a linter for report return nil error in Go. It combines the features of [nilness](https://cs.opensource.google/go/x/tools/+/refs/tags/v0.28.0:go/analysis/passes/nilness/nilness.go) and [nilerr](https://github.com/gostaticanalysis/nilerr), providing a concise way to detect return an unrelated/nil-values error.

## Case

Expand All @@ -24,7 +24,7 @@ if err2 != nil {
- https://github.com/alingse/sundrylint/issues/4
- https://github.com/alingse/nilnesserr/issues/1

we use https://github.com/alingse/go-linter-runner to run linter on GitHub Actions for public golang repos
We use https://github.com/alingse/go-linter-runner to run linter on GitHub Actions for public Go repos

## Install

Expand Down
2 changes: 1 addition & 1 deletion nilness.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was copy from https://cs.opensource.google/go/x/tools/+/master:go/analysis/passes/nilness/nilness.go
// I modified some to check the error retrun
// I modified some to check the error return

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
Expand Down

0 comments on commit 8ccb7b1

Please sign in to comment.