Skip to content

Commit b8c87a5

Browse files
committed
wit: improve package documentation
1 parent 0e53468 commit b8c87a5

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

wit/docs.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
// Package wit contains a Go representation of the WIT ([WebAssembly Interface Type])
2-
// specification as defined in the [WebAssembly Component Model].
1+
// Package wit contains a Go representation of the WIT (WebAssembly Interface Type) specification.
2+
//
3+
// # WIT
4+
//
5+
// WIT ([WebAssembly Interface Type]) is an interface definition language with rich types, functions, and methods,
6+
// used to define the interface of a [Component].
7+
//
8+
// Note: this package depends on the [wasm-tools] exectuable to parse WIT into an intermediary JSON representation.
39
//
410
// # Structure
511
//
@@ -29,9 +35,9 @@
2935
//
3036
// // Do something with res
3137
//
32-
// [WebAssembly Interface Type]: https://component-model.bytecodealliance.org/design/wit.html
33-
// [WebAssembly Component Model]: https://component-model.bytecodealliance.org/introduction.html
3438
// [wit-parser]: https://docs.rs/wit-parser/latest/wit_parser/
3539
// [source]: https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser
3640
// [wasm-tools]: https://crates.io/crates/wasm-tools
41+
// [WebAssembly Interface Type]: https://component-model.bytecodealliance.org/design/wit.html
42+
// [Component]: https://component-model.bytecodealliance.org/introduction.html
3743
package wit

0 commit comments

Comments
 (0)