Skip to content

Commit

Permalink
[ffi] Fix MallocAllocator doc (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi authored Apr 23, 2024
1 parent 2393cca commit d7d9229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/ffi/lib/src/allocation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ final WinCoTaskMemFree winCoTaskMemFree = winCoTaskMemFreePointer.asFunction();

/// Manages memory on the native heap.
///
/// Does not initialize newly allocated memory to zero. Use [_CallocAllocator]
/// Does not initialize newly allocated memory to zero. Use [CallocAllocator]
/// for zero-initialized memory on allocation.
///
/// For POSIX-based systems, this uses `malloc` and `free`. On Windows, it uses
/// `CoTaskMemAlloc`.
/// `CoTaskMemAlloc` and `CoTaskMemFree`.
final class MallocAllocator implements Allocator {
const MallocAllocator._();

Expand Down

0 comments on commit d7d9229

Please sign in to comment.