diff --git a/README.md b/README.md index 7f8d4f6..a15f70b 100644 --- a/README.md +++ b/README.md @@ -364,7 +364,7 @@ can check your code using [golint](https://github.com/golang/lint) The main code is [MIT](https://github.com/client9/misspell/blob/master/LICENSE). 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) -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) +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) ### Where do the word lists come from? diff --git a/cmd/misspell/main.go b/cmd/misspell/main.go index 81b54c7..3d2c2b4 100644 --- a/cmd/misspell/main.go +++ b/cmd/misspell/main.go @@ -120,7 +120,7 @@ func main() { return } if *showLegal { - fmt.Println(legal) + fmt.Println(misspell.Legal) return } if *debugFlag { diff --git a/cmd/misspell/legal.go b/legal.go similarity index 96% rename from cmd/misspell/legal.go rename to legal.go index 7ccf159..da0e6bd 100644 --- a/cmd/misspell/legal.go +++ b/legal.go @@ -1,6 +1,7 @@ -package main +package misspell -const legal = ` +// Legal provides licensing info. +const Legal = ` Execept where noted below, the source code for misspell is copyright Nick Galbreath and distribution is allowed under a MIT license. See the following for details: