mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
Merge pull request #3281 from erjohnson/patch-1
Update mem doc example formatting
This commit is contained in:
+2
-3
@@ -5,14 +5,14 @@ package mem implements various types of allocators.
|
||||
An example of how to use the `Tracking_Allocator` to track subsequent allocations
|
||||
in your program and report leaks and bad frees:
|
||||
|
||||
```odin
|
||||
Example:
|
||||
package foo
|
||||
|
||||
import "core:mem"
|
||||
import "core:fmt"
|
||||
|
||||
_main :: proc() {
|
||||
do stuff
|
||||
// do stuff
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
@@ -30,6 +30,5 @@ main :: proc() {
|
||||
fmt.printf("%v allocation %p was freed badly\n", bad_free.location, bad_free.memory)
|
||||
}
|
||||
}
|
||||
```
|
||||
*/
|
||||
package mem
|
||||
|
||||
Reference in New Issue
Block a user