From eccbcdea4a23ce50a586decfcec5e7454ea049e4 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 29 Mar 2023 11:39:08 -0700 Subject: remove deprecated function_type from documentation --- docs/dev/cookbook.md | 2 +- docs/guide/type.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/dev/cookbook.md b/docs/dev/cookbook.md index c9787ddb..7b9eda7a 100644 --- a/docs/dev/cookbook.md +++ b/docs/dev/cookbook.md @@ -64,7 +64,7 @@ bv.find_next_data(0, b"\x90" * 10) Make sure to check out the much more in-depth [type guide](../guide/type.md#using-the-api) as well. ```python -current_function.function_type = Type.function(Type.void(), []) +current_function.type = Type.function(Type.void(), []) ``` ### Find a variable's definition and all uses using SSA 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 >>> current_function.parameter_vars[2] @@ -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` -- cgit v1.3.1