Skip to content

Commit

Permalink
Merge pull request #6 from nokute78/rename_tosfs
Browse files Browse the repository at this point in the history
rename function name toSFs -> toRSFs
  • Loading branch information
goccy authored Aug 9, 2020
2 parents a620421 + 66d7777 commit 0432edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func toVs(v []reflect.Value) []Value {
return out
}

func toSFs(v []StructField) []reflect.StructField {
func toRSFs(v []StructField) []reflect.StructField {
out := make([]reflect.StructField, len(v))
for idx, vv := range v {
out[idx] = toRSF(vv)
Expand Down
2 changes: 1 addition & 1 deletion type.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func sliceOf(t Type) Type {
}

func structOf(fields []StructField) Type {
return ToType(reflect.StructOf(toSFs(fields)))
return ToType(reflect.StructOf(toRSFs(fields)))
}

//go:linkname type_Align reflect.(*rtype).Align
Expand Down

0 comments on commit 0432edb

Please sign in to comment.