Skip to content

Commit

Permalink
Fix trailing spaces in example output
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Feb 10, 2020
1 parent a9c21b7 commit cf7e7ea
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 @@ -103,7 +103,7 @@ s := padding.String("Hello", 8)
fmt.Println(s)
```

Result: `Hello `
Result: `Hello___` (the underlined portion represents 3 spaces)

There is also a padding Writer, which is compatible with the `io.WriteCloser`
interface:
Expand Down

0 comments on commit cf7e7ea

Please sign in to comment.