Skip to content

Conversation

@Poseidon-fan
Copy link
Contributor

Fixed the generic parameter placement in the LockedHeap usage example.

Before:

static HEAP_ALLOCATOR: LockedHeap = LockedHeap::<32>::empty();

After:

static HEAP_ALLOCATOR: LockedHeap<32> = LockedHeap::empty();

The generic parameter <32> should be specified on the type declaration (LockedHeap<32>), not on the constructor call. The previous syntax would fail to compile.

@jiegec jiegec merged commit 2167a08 into rcore-os:master Jan 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants