Skip to content

Commit b8580dc

Browse files
committed
Comment refactoring
1 parent bcddc79 commit b8580dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

wit/types.wit

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ interface types {
3737
unexpected-error(string)
3838
}
3939

40-
/// This tyep enumerates the different kinds of errors that may occur when
40+
/// This type enumerates the different kinds of errors that may occur when
4141
/// setting or appending to a `fields` resource.
4242
variant header-error {
43+
/// This error indicates that a `field-key` or `field-value` was
44+
/// syntactically invalid when used with an operation that sets headers in a
45+
/// `fields`.
4346
invalid-syntax,
47+
48+
/// This error indicates that a forbidden `field-key` was used when trying
49+
/// to set a header in a `fields`.
4450
forbidden,
4551
}
4652

@@ -82,9 +88,6 @@ interface types {
8288

8389
/// Set all of the values for a key. Clears any existing values for that
8490
/// key, if they have been set.
85-
///
86-
/// The operation can fail if the name or value arguments are invalid, or if
87-
/// the name is forbidden.
8891
set: func(name: field-key, value: list<field-value>) -> result<_, header-error>;
8992

9093
/// Delete all values for a key. Does nothing if no values for the key
@@ -93,9 +96,6 @@ interface types {
9396

9497
/// Append a value for a key. Does not change or delete any existing
9598
/// values for that key.
96-
///
97-
/// The operation can fail if the name or value arguments are invalid, or if
98-
/// the name is forbidden.
9999
append: func(name: field-key, value: field-value) -> result<_, header-error>;
100100

101101

0 commit comments

Comments
 (0)