diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2023-02-17 15:18:41 -0500 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2023-02-17 15:18:41 -0500 |
| commit | 04765087b245b348a15afa5117c74650cecbf270 (patch) | |
| tree | 341f3ea42e5183b960947f03c35240ca40e6e9f0 /docs/guide | |
| parent | c80262b75947c7a408483482f445b812a4611478 (diff) | |
correct order of tuple for function parameter types in documentation
Diffstat (limited to 'docs/guide')
| -rw-r--r-- | docs/guide/type.md | 4 |
1 files changed, 2 insertions, 2 deletions
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')]) |
