You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes several pages that did not start with a level one heading.
The unsafe page also had a weird use of level five headings. It's not
entirely clear to me why. The page originally used a list, so I have
switched it back to that. If in the future we decide to add more content
to one of these items, it can be broken out into a separate section like
integer overflow did.
Copy file name to clipboardExpand all lines: src/behavior-considered-undefined.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
r[undefined]
2
-
##Behavior considered undefined
2
+
# Behavior considered undefined
3
3
4
4
r[undefined.general]
5
5
Rust code is incorrect if it exhibits any of the behaviors in the following
@@ -92,12 +92,12 @@ r[undefined.runtime]
92
92
> Undefined behavior affects the entire program. For example, calling a function in C that exhibits undefined behavior of C means your entire program contains undefined behaviour that can also affect the Rust code. And vice versa, undefined behavior in Rust can cause adverse affects on code executed by any FFI calls to other languages.
93
93
94
94
r[undefined.pointed-to]
95
-
###Pointed-to bytes
95
+
## Pointed-to bytes
96
96
97
97
The span of bytes a pointer or reference "points to" is determined by the pointer value and the size of the pointee type (using `size_of_val`).
98
98
99
99
r[undefined.misaligned]
100
-
###Places based on misaligned pointers
100
+
## Places based on misaligned pointers
101
101
[based on a misaligned pointer]: #places-based-on-misaligned-pointers
102
102
103
103
r[undefined.misaligned.general]
@@ -137,7 +137,7 @@ that being based on an aligned pointer is always sufficient to ensure that the
137
137
new reference is aligned, but it is not always necessary.
138
138
139
139
r[undefined.dangling]
140
-
###Dangling pointers
140
+
## Dangling pointers
141
141
[dangling]: #dangling-pointers
142
142
143
143
r[undefined.dangling.general]
@@ -159,7 +159,7 @@ must never exceed `isize::MAX`, since it is impossible for a single allocation
0 commit comments