summaryrefslogtreecommitdiff
path: root/docs/guide
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2023-03-29 11:39:08 -0700
committerJordan Wiens <jordan@psifertex.com>2023-03-29 11:39:08 -0700
commiteccbcdea4a23ce50a586decfcec5e7454ea049e4 (patch)
tree29d41180b7df997aae7f3108f2126d9c424d2232 /docs/guide
parentce5d365c0ba8d24682f29236b3a9d3ba1ca1a3a3 (diff)
remove deprecated function_type from documentation
Diffstat (limited to 'docs/guide')
-rw-r--r--docs/guide/type.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guide/type.md b/docs/guide/type.md
index 090e7196..782bc939 100644
--- a/docs/guide/type.md
+++ b/docs/guide/type.md
@@ -430,7 +430,7 @@ Type.enumeration(members=['ENUM_0', 'ENUM_1', 'ENUM_2'])
You may end up accessing types via a variety of APIs. In some cases, you're already working with a variable, function, or other object that has a type property:
```python
->>> current_function.function_type
+>>> current_function.type
<type: immutable:FunctionTypeClass 'int32_t(int32_t argc, char** argv, char** envp)'>
>>> current_function.parameter_vars[2]
<var char** envp>
@@ -584,7 +584,7 @@ As of the 3.0 API its much easier to apply types to Variables and DataVariables
Change a functions type to a function which returns void and takes zero parameters:
```python
-current_function.function_type = Type.function(Type.void(), [])
+current_function.type = Type.function(Type.void(), [])
```
#### Applying a type to a `Variable`