Skip to content

Commit 89d7677

Browse files
authored
Fix WIT examples to not use i32
1 parent ec25742 commit 89d7677

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

design/mvp/Async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ in popular source language features/libraries. Often, "Structured Concurrency"
295295
refers to an invariant that all "child" tasks finish or are cancelled before a
296296
"parent" task completes. However, the Component Model doesn't force subtasks to
297297
[return](#returning) or be cancelled before the supertask returns (this is left
298-
as an option to particular source langauges to enforce or not). The reason for
298+
as an option to particular source languages to enforce or not). The reason for
299299
not enforcing a stricter form of Structured Concurrency at the Component
300300
Model level is that there are important use cases where forcing a supertask to
301301
stay resident simply to wait for a subtask to finish would waste resources

design/mvp/Explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2463,7 +2463,7 @@ something more idiomatic to the language. For example, the `plainname`
24632463
nested inside a class `MyResource`. To unburden bindings generators from having
24642464
to consider pathological cases where two unique-in-the-component names get
24652465
mapped to the same source-language identifier, Component Model validation
2466-
imposes a stronger form of uniquness than simple string equality on all the
2466+
imposes a stronger form of uniqueness than simple string equality on all the
24672467
names that appear within the same scope.
24682468

24692469
To determine whether two names (defined as sequences of [Unicode Scalar

design/mvp/WIT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ interface calc {
10551055
}
10561056
10571057
@since(version = 0.1.0)
1058-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1058+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
10591059
}
10601060
```
10611061

@@ -1074,13 +1074,13 @@ interface calc {
10741074
}
10751075
10761076
@since(version = 0.1.0)
1077-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1077+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
10781078
10791079
/// By convention, feature flags should be prefixed with package name to reduce chance of collisions
10801080
///
10811081
/// see: https://github.com/WebAssembly/WASI/blob/main/Contributing.md#filing-changes-to-existing-phase-3-proposals
10821082
@unstable(feature = fgates-calc-minus)
1083-
sub: func(x: i32, y: i32) -> result<i32, calc-error>;
1083+
sub: func(x: s32, y: s32) -> result<s32, calc-error>;
10841084
}
10851085
```
10861086

@@ -1103,10 +1103,10 @@ interface calc {
11031103
}
11041104
11051105
@since(version = 0.1.0)
1106-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1106+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
11071107
11081108
@since(version = 0.1.2)
1109-
sub: func(x: i32, y: i32) -> result<i32, calc-error>;
1109+
sub: func(x: s32, y: s32) -> result<s32, calc-error>;
11101110
}
11111111
```
11121112

@@ -1129,10 +1129,10 @@ interface calc {
11291129
}
11301130
11311131
@since(version = 0.1.0)
1132-
add-one: func(x: i32) -> result<i32, calc-error>;
1132+
add-one: func(x: s32) -> result<s32, calc-error>;
11331133
11341134
@since(version = 0.1.1)
1135-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1135+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
11361136
}
11371137
```
11381138

@@ -1151,10 +1151,10 @@ interface calc {
11511151
}
11521152
11531153
@deprecated(version = 0.1.2)
1154-
add-one: func(x: i32) -> result<i32, calc-error>;
1154+
add-one: func(x: s32) -> result<s32, calc-error>;
11551155
11561156
@since(version = 0.1.1)
1157-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1157+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
11581158
}
11591159
```
11601160

@@ -1175,7 +1175,7 @@ interface calc {
11751175
}
11761176
11771177
@since(version = 0.1.1)
1178-
add: func(x: i32, y: i32) -> result<i32, calc-error>;
1178+
add: func(x: s32, y: s32) -> result<s32, calc-error>;
11791179
}
11801180
```
11811181

0 commit comments

Comments
 (0)