Skip to content

Commit 67ab288

Browse files
authored
Update comments
1 parent a412984 commit 67ab288

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

context.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (c *Context) Parent() *Context {
3434
return c.parent
3535
}
3636

37-
// Parent returns top context if exists
37+
// Global returns top context if exists
3838
func (c *Context) Global() *Context {
3939
ctx := c
4040
for {
@@ -84,7 +84,7 @@ func (c *Context) GetBool(name string) bool {
8484
return false
8585
}
8686

87-
// GetBool returns flag value as bool
87+
// GetInt returns flag value as int
8888
func (c *Context) GetInt(name string) int {
8989
f := lookupFlag(c.flags, name)
9090
if f != nil {
@@ -168,7 +168,7 @@ func (c *Context) GetUint8(name string) uint8 {
168168
return 0
169169
}
170170

171-
// GetBool returns flag value as bool
171+
// GetUint16 returns flag value as uint16
172172
func (c *Context) GetUint16(name string) uint16 {
173173
f := lookupFlag(c.flags, name)
174174
if f != nil {
@@ -192,7 +192,7 @@ func (c *Context) GetUint32(name string) uint32 {
192192
return 0
193193
}
194194

195-
// GetBool returns flag value as bool
195+
// GetUint64 returns flag value as uint64
196196
func (c *Context) GetUint64(name string) uint64 {
197197
f := lookupFlag(c.flags, name)
198198
if f != nil {

0 commit comments

Comments
 (0)