Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalmahajan15 committed May 25, 2024
1 parent 536b2f0 commit 3285cec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ var BuiltinAppend = types.Universe.Lookup("append")
// BuiltinNew is the builtin "new" function object.
var BuiltinNew = types.Universe.Lookup("new")

// TypeIsDeep checks if a type is an expression that directly admits a deep nilability annotation - deep
// nilability annotations on all other types are ignored
// TypeIsDeep checks if a type is an expression that admits deep nilability, such as maps, slices, arrays, etc.
func TypeIsDeep(t types.Type) bool {
switch t := t.(type) {
case *types.Slice, *types.Array, *types.Map, *types.Chan:
Expand Down

0 comments on commit 3285cec

Please sign in to comment.