docsite icon indicating copy to clipboard operation
docsite copied to clipboard

fix(docs): dereference MenuItem pointer in example code

Open KEHyeon opened this issue 1 month ago • 0 comments

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.

KEHyeon avatar Nov 13 '25 05:11 KEHyeon