docsite
docsite copied to clipboard
fix(docs): dereference MenuItem pointer in example code
The documentation example used []MenuItem{item}, but the GenerateData function
returns a pointer (*MenuItem). This caused a mismatch because Menu.Items expects
a slice of values ([]MenuItem), not pointers.
This commit updates the example to use []MenuItem{*item} to correctly
dereference the pointer before adding it to the slice.