Skip to content

Commit 1094cf3

Browse files
author
Pat Hickey
authored
Merge pull request #36 from WebAssembly/pch/require_semicolons
wit syntax: use semicolons
2 parents d1f7984 + 0e8a197 commit 1094cf3

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: WebAssembly/wit-abi-up-to-date@v15
14+
- uses: WebAssembly/wit-abi-up-to-date@v16

wit/insecure-seed.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ interface insecure-seed {
2020
/// This will likely be changed to a value import, to prevent it from being
2121
/// called multiple times and potentially used for purposes other than DoS
2222
/// protection.
23-
insecure-seed: func() -> tuple<u64, u64>
23+
insecure-seed: func() -> tuple<u64, u64>;
2424
}

wit/insecure.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ interface insecure {
1111
/// There are no requirements on the values of the returned bytes, however
1212
/// implementations are encouraged to return evenly distributed values with
1313
/// a long period.
14-
get-insecure-random-bytes: func(len: u64) -> list<u8>
14+
get-insecure-random-bytes: func(len: u64) -> list<u8>;
1515

1616
/// Return an insecure pseudo-random `u64` value.
1717
///
1818
/// This function returns the same type of pseudo-random data as
1919
/// `get-insecure-random-bytes`, represented as a `u64`.
20-
get-insecure-random-u64: func() -> u64
20+
get-insecure-random-u64: func() -> u64;
2121
}

wit/random.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ interface random {
1515
/// This function must always return fresh data. Deterministic environments
1616
/// must omit this function, rather than implementing it with deterministic
1717
/// data.
18-
get-random-bytes: func(len: u64) -> list<u8>
18+
get-random-bytes: func(len: u64) -> list<u8>;
1919

2020
/// Return a cryptographically-secure random or pseudo-random `u64` value.
2121
///
2222
/// This function returns the same type of data as `get-random-bytes`,
2323
/// represented as a `u64`.
24-
get-random-u64: func() -> u64
24+
get-random-u64: func() -> u64;
2525
}

wit/world.wit

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package wasi:random
1+
package wasi:random;
22

33
world imports {
4-
import random
5-
import insecure
6-
import insecure-seed
4+
import random;
5+
import insecure;
6+
import insecure-seed;
77
}

0 commit comments

Comments
 (0)