Skip to content

Commit

Permalink
adjust comment for completeness (#14681)
Browse files Browse the repository at this point in the history
  • Loading branch information
magodo committed May 19, 2021
1 parent 57de692 commit 4621eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/azcore/core.go
Expand Up @@ -162,8 +162,8 @@ func NullValue(v interface{}) interface{} {
if !found {
var o reflect.Value
if k := t.Kind(); k == reflect.Slice || k == reflect.Map {
o = reflect.New(t) // *[]type
o = o.Elem() // []type
o = reflect.New(t) // *[]type / *map[]
o = o.Elem() // []type / map[]
} else {
o = reflect.New(t.Elem())
}
Expand Down

0 comments on commit 4621eea

Please sign in to comment.