Merge pull request #138 from ryanguest/master

Fix a couple small typos
This commit is contained in:
Zack Guo 2017-04-05 10:35:04 +08:00 committed by GitHub
commit 383c12d69e
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func (bc *BarChart) layout() {
}
//bc.max = bc.Data[0] // what if Data is nil? Sometimes when bar graph is nill it produces panic with panic: runtime error: index out of range
// Asign a negative value to get maxvalue auto-populates
// Assign a negative value to get maxvalue auto-populates
if bc.max == 0 {
bc.max = -1
}

View File

@ -100,7 +100,7 @@ func charWidth(ch rune) int {
var whiteSpaceRegex = regexp.MustCompile(`\s`)
// StringToAttribute converts text to a termui attribute. You may specifiy more
// StringToAttribute converts text to a termui attribute. You may specify more
// then one attribute like that: "BLACK, BOLD, ...". All whitespaces
// are ignored.
func StringToAttribute(text string) Attribute {