Skip to content

Commit

Permalink
Merge pull request #57 from WebAssembly/document-fields-get-return-value
Browse files Browse the repository at this point in the history
Document fields-get return value when the key is not present
  • Loading branch information
pchickey committed Sep 28, 2023
2 parents ca9a5a3 + c983205 commit 0043e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ interface types {
type fields = u32
drop-fields: func(fields: fields)
new-fields: func(entries: list<tuple<string,list<u8>>>) -> fields
// Returns an empty list if `name` is not present.
fields-get: func(fields: fields, name: string) -> list<list<u8>>
fields-set: func(fields: fields, name: string, value: list<list<u8>>)
fields-delete: func(fields: fields, name: string)
Expand Down

0 comments on commit 0043e7c

Please sign in to comment.