Skip to content

Commit 1ff0f97

Browse files
fatihbschaatsbergen
andcommitted
Apply suggestions from code review
Co-authored-by: Bruno Schaatsbergen <[email protected]>
1 parent 5723903 commit 1ff0f97

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ color.Magenta("And many others ..")
3232

3333
### RGB colors
3434

35-
If your terminal supports 24-bit colors, you can use RGB color codes
35+
If your terminal supports 24-bit colors, you can use RGB color codes.
3636

3737
```go
3838
color.RGB(255, 128, 0).Println("foreground orange")

color.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const (
9999
FgCyan
100100
FgWhite
101101

102-
// used internally for 256 and 24bit coloring
102+
// used internally for 256 and 24-bit coloring
103103
foreground
104104
)
105105

@@ -126,7 +126,7 @@ const (
126126
BgCyan
127127
BgWhite
128128

129-
// used internally for 256 and 24bit coloring
129+
// used internally for 256 and 24-bit coloring
130130
background
131131
)
132132

@@ -156,12 +156,12 @@ func New(value ...Attribute) *Color {
156156
return c
157157
}
158158

159-
// RGB returns a newly created foreground 24-bit RGB color.
159+
// RGB returns a new foreground color in 24-bit RGB.
160160
func RGB(r, g, b int) *Color {
161161
return New(foreground, 2, Attribute(r), Attribute(g), Attribute(b))
162162
}
163163

164-
// BgRGB returns a newly created 24-bit background RGB color.
164+
// BgRGB returns a new background color in 24-bit RGB.
165165
func BgRGB(r, g, b int) *Color {
166166
return New(background, 2, Attribute(r), Attribute(g), Attribute(b))
167167
}

0 commit comments

Comments
 (0)