Skip to content

Commit 74920c1

Browse files
committed
Fix the method name in doc
The parameter name is not correct
1 parent 99a8573 commit 74920c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dev/annotation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,18 @@ Though convenient it is many orders of magnitude slower than simply calling the
142142
```python
143143
Type.int(4) # Creates a 4 byte signed integer
144144
Type.int(8, False) # Creates an 8 bytes unsigned integer
145-
Type.int(2, altName="short") # Creates a 2 byte signed integer named 'short'
145+
Type.int(2, alternate_name="short") # Creates a 2 byte signed integer named 'short'
146146
# Similarly through their classes directly
147147
IntegerType.create(4)
148148
IntegerType.create(8, False)
149-
IntegerType.create(2, altName="short")
149+
IntegerType.create(2, alternate_name="short")
150150
```
151151

152152
#### Character Types
153153

154154
```python
155155
Type.char() # This is just a 1 byte signed integer and can be used as such
156-
Type.wideChar(2, altName="wchar_t") # Creates a wide character with the name 'wchar_t'
156+
Type.wide_char(2, alternate_name="wchar_t") # Creates a wide character with the name 'wchar_t'
157157
# Similarly through their classes directly
158158
CharType.create()
159159
WideCharType.create(2)

0 commit comments

Comments
 (0)