From 74920c190c5c6230833be6d50536119ce5e44c98 Mon Sep 17 00:00:00 2001 From: Zichuan Li <34680029+river-li@users.noreply.github.com> Date: Fri, 24 May 2024 11:53:02 -0400 Subject: Fix the method name in doc The parameter name is not correct --- docs/dev/annotation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/dev') diff --git a/docs/dev/annotation.md b/docs/dev/annotation.md index abdf91c1..c75ca775 100644 --- a/docs/dev/annotation.md +++ b/docs/dev/annotation.md @@ -142,18 +142,18 @@ Though convenient it is many orders of magnitude slower than simply calling the ```python Type.int(4) # Creates a 4 byte signed integer Type.int(8, False) # Creates an 8 bytes unsigned integer -Type.int(2, altName="short") # Creates a 2 byte signed integer named 'short' +Type.int(2, alternate_name="short") # Creates a 2 byte signed integer named 'short' # Similarly through their classes directly IntegerType.create(4) IntegerType.create(8, False) -IntegerType.create(2, altName="short") +IntegerType.create(2, alternate_name="short") ``` #### Character Types ```python Type.char() # This is just a 1 byte signed integer and can be used as such -Type.wideChar(2, altName="wchar_t") # Creates a wide character with the name 'wchar_t' +Type.wide_char(2, alternate_name="wchar_t") # Creates a wide character with the name 'wchar_t' # Similarly through their classes directly CharType.create() WideCharType.create(2) -- cgit v1.3.1