From 6543b216981a407f659d1922976f8425069073c1 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 6 Jun 2020 15:42:51 -0400 Subject: fix documentaiton example --- docs/guide/type.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/guide') diff --git a/docs/guide/type.md b/docs/guide/type.md index 8bb34424..ede231d7 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -330,7 +330,7 @@ Here's a snippet to take an existing function, and set the confidence of all the old = current_function.function_type new_parameters = [] for vars, params in zip(current_function.parameter_vars, old.parameters): - new_type = vars + new_type = vars.type new_type.confidence = 256 #max-confidence new_parameters.append(FunctionParameter(new_type, params.name, params.location)) -- cgit v1.3.1