From 04765087b245b348a15afa5117c74650cecbf270 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 17 Feb 2023 15:18:41 -0500 Subject: correct order of tuple for function parameter types in documentation --- docs/guide/type.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/guide') diff --git a/docs/guide/type.md b/docs/guide/type.md index 85d6c8e9..0dddfcdc 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -395,8 +395,8 @@ ArrayType.create(Type.int(4), 2) ```python Type.function() # Creates a function with which takes no parameters and returns void -Type.function(Type.void(), [(Type.int(4), 'arg1')]) # Create a function type which takes an integer as parameter and returns void -Type.function(params=[(Type.int(4), 'arg1')]) # Same as the above +Type.function(Type.void(), [('arg1', Type.int(4))]) # Create a function type which takes an integer as parameter and returns void +Type.function(params=[('arg1', Type.int(4))]) # Same as the above # Similarly through their classes directly FunctionType.create() FunctionType.create(Type.void(), [(Type.int(4), 'arg1')]) -- cgit v1.3.1