Skip to content

Commit a67ba66

Browse files
authored
Fix WIT.md example to match #387 (#493)
Resolves #480
1 parent f60eb5a commit a67ba66

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

design/mvp/WIT.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ interface foo {
947947
@since(version = 0.2.1)
948948
b: func();
949949
950-
@since(version = 0.2.2, feature = fancy-foo)
950+
@since(version = 0.2.2)
951951
c: func();
952952
953953
@unstable(feature = fancier-foo)
@@ -973,19 +973,14 @@ default unless explicitly opted-into by the developer.
973973

974974
Finally, the `@deprecated` gate on `e` indicates that `e` should no longer be
975975
used starting version `0.2.2`. Both toolchains and host runtimes may warn users
976-
if they detect an `@deprecated` API is being used. An `@deprecated` gate is
976+
if they detect an `@deprecated` API is being used. A `@deprecated` gate is
977977
required to always be paired up with either a `@since` or `@deprecated` gate.
978978

979979
Together, these gates support a development flow in which new features start
980980
with an `@unstable` gate while the details are still being hashed out. Then,
981981
once the feature is stable (and, in a WASI context, voted upon), the
982982
`@unstable` gate is switched to a `@since` gate.
983983

984-
Thus, `c` is enabled if the version is `0.2.2` or newer or the
985-
`fancy-foo` feature is explicitly enabled by the developer. The `feature` field
986-
can be removed once producer toolchains have updated their default version to
987-
enable the feature by default.
988-
989984
#### Feature gate syntax
990985

991986
The grammar that governs feature gate syntax is:

0 commit comments

Comments
 (0)