Skip to content

Commit 2fbfb2e

Browse files
authored
Merge pull request #14 from uudashr/improve-docs
Improve documentation
2 parents e53d288 + 626b754 commit 2fbfb2e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It consists of several analyzers:
88
1. `unused`: Identifies interfaces that are not used anywhere in the same package where the interface is defined.
99
2. `identical`: Identifies interfaces in the same package with identical methods or constraints.
1010
3. `opaque`: Identifies functions that return interfaces, but the actual returned value is always a single concrete implementation.
11-
4. `unexported`: Identifies interfaces that are not exported but are used in exported functions or methods.
11+
4. `unexported`: Identifies interfaces that are not exported but are used in exported functions or methods as parameters or return values.
1212

1313
## Usage
1414

unexported/doc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// Package unexported defines an Analyzer that identifies interfaces that are
2-
// not exported but are used in exported functions or methods.
2+
// not exported but are used in exported functions or methods as parameters or
3+
// return values.
34
package unexported

unexported/unexported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func newAnalyzer() *analysis.Analyzer {
2020

2121
analyzer := &analysis.Analyzer{
2222
Name: "unexported",
23-
Doc: "Identifies interfaces that are not exported but are used in exported functions or methods",
23+
Doc: "Identifies interfaces that are not exported but are used in exported functions or methods as parameters or return values",
2424
URL: "https://pkg.go.dev/github.com/uudashr/iface/visibility",
2525
Requires: []*analysis.Analyzer{inspect.Analyzer},
2626
Run: r.run,

0 commit comments

Comments
 (0)