Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
enindu committed Mar 3, 2024
1 parent 18cd716 commit d74a224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Palette is a simple library to add ANSI colors to terminal output. See [document

- Supports 4 formats and 32 colors.
- You can manually set output writer. Writer must implements `io.Writer` interface. Default writer is `os.Stdout`.
- You can manually set text length that must be used by `palette.(printer *Printer).Write()` method. Default length is `0`, which means entire text will be used by `palette.(printer *Printer).Write()` method.
- You can manually set text length to written as in `Printer` configurations. Default length is `0`, which means entire text will be written as in `Printer` configurations.
- You can chain everything in one line.

See usage for more information.
Expand Down
3 changes: 1 addition & 2 deletions printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ func (printer *Printer) SetBackground(background Background) *Printer {
// SetLength sets [Printer].length using length. It returns a pointer to
// [Printer].
//
// length<=0 considered [Printer].length is disabled and entire text will be
// written as in [Printer] configurations.
// If length<=0, it considered [Printer].length is disabled.
func (printer *Printer) SetLength(length int) *Printer {
printer.length = length
return printer
Expand Down

0 comments on commit d74a224

Please sign in to comment.