update comments

This commit is contained in:
Tnze
2023-02-05 20:10:56 +08:00
parent 9a64bcfac7
commit 807e94e360
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ func (m Message) ClearString() string {
// String return the message string with escape sequence for ansi color.
// To convert Translated Message to string, you must set
// On Windows, you may want print this string using github.com/matte/go-colorable.
// On Windows, you may want print this string using github.com/mattn/go-colorable.
func (m Message) String() string {
var msg, format strings.Builder
if m.Bold {

View File

@ -99,7 +99,7 @@ func Create(name string) (*Region, error) {
return CreateWriter(f)
}
// CreateWriter init the region
// CreateWriter create Region by an io.ReadWriteSeeker
func CreateWriter(f io.ReadWriteSeeker) (r *Region, err error) {
r = new(Region)
r.sectors = make(map[int32]bool)