Skip to content

Commit

Permalink
experimental: clarify memory allocator context is for module instanti…
Browse files Browse the repository at this point in the history
…ation (#2331)

Signed-off-by: Anuraag Agrawal <[email protected]>
  • Loading branch information
anuraaga authored Oct 11, 2024
1 parent 6016a70 commit c8d0f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type LinearMemory interface {
}

// WithMemoryAllocator registers the given MemoryAllocator into the given
// context.Context.
// context.Context. The context must be passed when initializing a module.
func WithMemoryAllocator(ctx context.Context, allocator MemoryAllocator) context.Context {
if allocator != nil {
return context.WithValue(ctx, expctxkeys.MemoryAllocatorKey{}, allocator)
Expand Down

0 comments on commit c8d0f0a

Please sign in to comment.