1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-26 19:23:22 +02:00

Merge pull request #41 from reillyeon/patch-1

Fix C array syntax in memory-management/manual.md
This commit is contained in:
Martin Geisler 2022-12-23 11:27:15 +01:00 committed by GitHub
commit 21a2bb235f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ You must call `free` on every pointer you allocate with `malloc`:
```c
void foo(size_t n) {
int[] int_array = (int*)malloc(n * sizeof(int));
int* int_array = (int*)malloc(n * sizeof(int));
//
// ... lots of code
//