Fix MyDataGetter example after #319 (#532)

This commit is contained in:
szym-nuro
2024-12-26 09:22:16 -08:00
committed by GitHub
parent 35f7955475
commit f1b0792cd3

View File

@@ -831,7 +831,7 @@ IMPLOT_API void SetNextAxesToFit();
// an ImPlot function post-fixed with a G (e.g. PlotScatterG). This has a slight performance
// cost, but probably not enough to worry about unless your data is very large. Examples:
//
// ImPlotPoint MyDataGetter(void* data, int idx) {
// ImPlotPoint MyDataGetter(int idx, void* data) {
// MyData* my_data = (MyData*)data;
// ImPlotPoint p;
// p.x = my_data->GetTime(idx);