diff options
| author | Victor Collod <victor.collod@epita.fr> | 2022-08-13 23:43:10 +0200 |
|---|---|---|
| committer | galenbwill <galenbwill@users.noreply.github.com> | 2022-08-29 09:41:59 -0400 |
| commit | ff9f329415aa7b9fac4a089d9b28a77228835adc (patch) | |
| tree | da7d9b0378ecfec8885d3599f31934d347701399 /docs/guide | |
| parent | 119288376884595ff6f8fabaf1ca0e417b3cf042 (diff) | |
Fix the documentation of named types references
Diffstat (limited to 'docs/guide')
| -rw-r--r-- | docs/guide/type.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/guide/type.md b/docs/guide/type.md index ec32085f..cae1769d 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -321,7 +321,7 @@ structure `Bar`. t = Type.structure(members=[(Type.int(4), 'inner')]) n = 'Foo' bv.define_user_type(n, t) -ntr = Type.named_type_reference(n, t) +ntr = Type.named_type_from_registered_type(bv, n) bv.define_user_type('Bar', Type.structure(members=[(ntr, 'outer')])) ``` |
