Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Dice <[email protected]>
  • Loading branch information
jsturtevant and dicej authored Jan 15, 2025
1 parent 9aa4408 commit 9f32652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/csharp/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ impl Bindgen for FunctionBindgen<'_, '_> {
Direction::Import => {
let ptr: String = self.locals.tmp("listPtr");
let handle: String = self.locals.tmp("gcHandle");
// Dispite the name GCHandle.Alloc here this does not actually allocate memory on the heap.
// It pins the array with the garbage collector so that it can be passed to unmanaged code
// It is required to free the pin after use which is done in the Cleanup section
// Despite the name GCHandle.Alloc here this does not actually allocate memory on the heap.
// It pins the array with the garbage collector so that it can be passed to unmanaged code.
// It is required to free the pin after use which is done in the Cleanup section.
uwrite!(
self.src,
"
Expand Down

0 comments on commit 9f32652

Please sign in to comment.