Skip to content

Commit a57fbb9

Browse files
authored
Several small documentation fixes (#1259)
1 parent a3a8682 commit a57fbb9

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

doc/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def main() -> int:
9595
```
9696

9797
The problem is that when we do `increment_y(p)`,
98-
we simply pass the 64 (or more) bytes of the instance `p` to the `increment_y()` function.
98+
we simply pass the 64 bits of the instance `p` to the `increment_y()` function.
9999
This is very similar to creating two variables `x` and `y` in the `main()` function:
100100

101101
```python

doc/enums.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ def main() -> int:
172172
return 0
173173
```
174174

175-
The purpose of the `assert` is to ensure that the `descriptions` array stays up to date
176-
when new operations are added.
177-
178175
You can also convert integers to enums,
179176
but note that the result might not correspond with any member of the enum.
180177
For example:

doc/keywords.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,7 @@ def main() -> int:
459459
Note that unlike in Python,
460460
you don't need to use `global` inside a function to modify the global variable.
461461
462-
By default, global variables are always initialized to zero memory,
463-
and it is not possible to specify any other initializing.
462+
By default, global variables are always initialized to zero memory.
464463
For example, numbers are initialized to zero, booleans are initialized to `False` and pointers are initialized to `NULL`.
465464
It is possible to specify a different initial value:
466465

0 commit comments

Comments
 (0)