Skip to content

Commit e038588

Browse files
committed
CABI: fix typos
1 parent 807a311 commit e038588

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

design/mvp/CanonicalABI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,8 @@ def store(cx, v, t, ptr):
11841184
case Record(fields) : store_record(cx, v, ptr, fields)
11851185
case Variant(cases) : store_variant(cx, v, ptr, cases)
11861186
case Flags(labels) : store_flags(cx, v, ptr, labels)
1187-
case Own() : store_int(cx, lower_own(cx.opts, v, t), ptr, 4)
1188-
case Borrow() : store_int(cx, lower_borrow(cx.opts, v, t), ptr, 4)
1187+
case Own() : store_int(cx, lower_own(cx, v, t), ptr, 4)
1188+
case Borrow() : store_int(cx, lower_borrow(cx, v, t), ptr, 4)
11891189
```
11901190

11911191
Integers are stored directly into memory. Because the input domain is exactly

design/mvp/canonical-abi/definitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ def store(cx, v, t, ptr):
849849
case Record(fields) : store_record(cx, v, ptr, fields)
850850
case Variant(cases) : store_variant(cx, v, ptr, cases)
851851
case Flags(labels) : store_flags(cx, v, ptr, labels)
852-
case Own() : store_int(cx, lower_own(cx.opts, v, t), ptr, 4)
853-
case Borrow() : store_int(cx, lower_borrow(cx.opts, v, t), ptr, 4)
852+
case Own() : store_int(cx, lower_own(cx, v, t), ptr, 4)
853+
case Borrow() : store_int(cx, lower_borrow(cx, v, t), ptr, 4)
854854

855855
def store_int(cx, v, ptr, nbytes, signed = False):
856856
cx.opts.memory[ptr : ptr+nbytes] = int.to_bytes(v, nbytes, 'little', signed=signed)

design/mvp/canonical-abi/run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ async def dtor(task, args):
401401
rt2 = ResourceType(inst, dtor) # only usable in exports
402402
opts = mk_opts()
403403

404-
async def host_import(task, on_start, on_return, on_suspend):
404+
async def host_import(task, on_start, on_return, on_block):
405405
args = on_start()
406406
assert(len(args) == 2)
407407
assert(args[0] == 42)

0 commit comments

Comments
 (0)