Skip to content

Commit

Permalink
Merge pull request #18 from CreatCodeBuild/patch-1
Browse files Browse the repository at this point in the history
Provide better README doc
  • Loading branch information
KenjiTakahashi authored Dec 6, 2020
2 parents 5262a69 + 84a14c1 commit 7b23e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
}
for i, battery := range batteries {
fmt.Printf("Bat%d: ", i)
fmt.Printf("state: %f, ", battery.State)
fmt.Printf("state: %s, ", battery.State.String())
fmt.Printf("current capacity: %f mWh, ", battery.Current)
fmt.Printf("last full capacity: %f mWh, ", battery.Full)
fmt.Printf("design capacity: %f mWh, ", battery.Design)
Expand Down

0 comments on commit 7b23e7b

Please sign in to comment.