WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 14696a5

Browse files
author
nickg
committed
rework legal stuff to make goreleaser happy
1 parent ed57c6a commit 14696a5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ can check your code using [golint](https://github.com/golang/lint)
364364
The main code is [MIT](https://github.com/client9/misspell/blob/master/LICENSE).
365365

366366
Misspell also makes uses of the Golang standard library and contains a modified version of Golang's [strings.Replacer](https://golang.org/pkg/strings/#Replacer)
367-
which are covered under a [BSD License](https://github.com/golang/go/blob/master/LICENSE). Type `misspell -legal` for more details or see [legal.go](https://github.com/client9/misspell/blob/master/cmd/misspell/legal.go)
367+
which are covered under a [BSD License](https://github.com/golang/go/blob/master/LICENSE). Type `misspell -legal` for more details or see [legal.go](https://github.com/client9/misspell/blob/master/legal.go)
368368

369369
<a name="words"></a>
370370
### Where do the word lists come from?

cmd/misspell/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func main() {
120120
return
121121
}
122122
if *showLegal {
123-
fmt.Println(legal)
123+
fmt.Println(misspell.Legal)
124124
return
125125
}
126126
if *debugFlag {

cmd/misspell/legal.go renamed to legal.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
package main
1+
package misspell
22

3-
const legal = `
3+
// Legal provides licensing info.
4+
const Legal = `
45
Execept where noted below, the source code for misspell is
56
copyright Nick Galbreath and distribution is allowed under a
67
MIT license. See the following for details:

0 commit comments

Comments
 (0)