Skip to content

Commit

Permalink
uiprogress: cleaning up documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Osuri committed Nov 30, 2015
1 parent 459094f commit e74d4fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewBar(total int) *Bar {
}
}

// Sets the current count of the bar. It returns ErrMaxCurrentReached when trying n exceeds the total value. This is atomic operation and concurancy safe.
// Set the current count of the bar. It returns ErrMaxCurrentReached when trying n exceeds the total value. This is atomic operation and concurancy safe.
func (b *Bar) Set(n int) error {
b.mtx.Lock()
defer b.mtx.Unlock()
Expand Down
4 changes: 2 additions & 2 deletions util/strutil/strutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"
)

// Returns a new string of a specified length in which the end of the current string is padded with spaces or with a specified Unicode character.
// PadRight returns a new string of a specified length in which the end of the current string is padded with spaces or with a specified Unicode character.
func PadRight(str string, length int, pad byte) string {
if len(str) >= length {
return str
Expand All @@ -18,7 +18,7 @@ func PadRight(str string, length int, pad byte) string {
return buf.String()
}

// Returns a new string of a specified length in which the beginning of the current string is padded with spaces or with a specified Unicode character.
// PadLeft returns a new string of a specified length in which the beginning of the current string is padded with spaces or with a specified Unicode character.
func PadLeft(str string, length int, pad byte) string {
if len(str) >= length {
return str
Expand Down

0 comments on commit e74d4fc

Please sign in to comment.