Skip to content

Commit 4a41b01

Browse files
committed
map: fix log message
Signed-off-by: shun159 <[email protected]>
1 parent c2f2792 commit 4a41b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func (spec *MapSpec) createMap(inner *sys.FD) (_ *Map, err error) {
566566
}
567567

568568
if spec.Value == nil {
569-
return nil, fmt.Errorf("Struct type is not specified as Value")
569+
return nil, fmt.Errorf("struct type is not specified as Value")
570570
}
571571

572572
userStructTypeName := spec.Value.TypeName()
@@ -580,7 +580,7 @@ func (spec *MapSpec) createMap(inner *sys.FD) (_ *Map, err error) {
580580

581581
userStructType, ok := t.(*btf.Struct)
582582
if !ok {
583-
return nil, fmt.Errorf("Value must be Struct type")
583+
return nil, fmt.Errorf("value must be Struct type")
584584
}
585585

586586
btfValueTypeId, err := s.TypeID(userStructType)

0 commit comments

Comments
 (0)