Skip to content

Commit 3e93c27

Browse files
committed
Add a subsection header for value type mangling.
1 parent 60627f6 commit 3e93c27

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

design/mvp/CanonicalABI.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ the Canonical ABI.
14611461

14621462
#### Function type mangling
14631463

1464-
Function and value types are recursively mangled into
1464+
Function types are mangled into
14651465
[`wit`](WIT.md)-compatible syntax:
14661466
```python
14671467
def mangle_funcname(name, ft):
@@ -1477,6 +1477,11 @@ def mangle_funcvec(es, pre_space):
14771477
mangled_elems = (e[0] + ': ' + mangle_valtype(e[1]) for e in es)
14781478
return '(' + ', '.join(mangled_elems) + ')'
14791479

1480+
#### Value type mangling
1481+
1482+
Value types are similarly mangled into [`wit`](WIT.md)-compatible syntax,
1483+
recursively:
1484+
14801485
def mangle_valtype(t):
14811486
match t:
14821487
case Bool() : return 'bool'

0 commit comments

Comments
 (0)