Skip to content

Commit

Permalink
Update doc comment on decls.NewOptionalType
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones committed Nov 8, 2022
1 parent a16fcb9 commit 6160484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checker/decls/decls.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func NewAbstractType(name string, paramTypes ...*exprpb.Type) *exprpb.Type {
ParameterTypes: paramTypes}}}
}

// NewOptionalType constructs an abstract type indicating that the parameterized type
// may be contained within the object.
func NewOptionalType(paramType *exprpb.Type) *exprpb.Type {
return NewAbstractType("optional", paramType)
}
Expand Down

0 comments on commit 6160484

Please sign in to comment.