docs: Missing semicolons (#4094)

Add semicolons to Memory view sample code
This commit is contained in:
Hyunwook Choi 2022-07-28 02:41:57 +09:00 committed by GitHub
parent b07975f492
commit d70f54b073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ following:
{ 2, 4 }, // shape (rows, cols)
{ sizeof(uint8_t) * 4, sizeof(uint8_t) } // strides in bytes
);
})
});
This approach is meant for providing a ``memoryview`` for a C/C++ buffer not
managed by Python. The user is responsible for managing the lifetime of the
@ -449,7 +449,7 @@ We can also use ``memoryview::from_memory`` for a simple 1D contiguous buffer:
buffer, // buffer pointer
sizeof(uint8_t) * 8 // buffer size
);
})
});
.. versionchanged:: 2.6
``memoryview::from_memory`` added.