chore: Miscellaneous minor fixes (#243)

* chore: remove internal use of deprecated NewModel

* chore: miscellaneous comment fixes
This commit is contained in:
Tom Payne
2022-09-15 16:51:42 +02:00
committed by GitHub
parent a4ed54327f
commit 72d87e4513
4 changed files with 14 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ var (
}
)
// Model contains the state for the spinner. Use NewModel to create new models
// Model contains the state for the spinner. Use New to create new models
// rather than using Model as a struct literal.
type Model struct {
// Spinner settings to use. See type Spinner.
@@ -208,8 +208,7 @@ func Tick() tea.Msg {
// Option is used to set options in New. For example:
//
// spinner := New(WithSpinner(Dot))
//
// spinner := New(WithSpinner(Dot))
type Option func(*Model)
// WithSpinner is an option to set the spinner.