Fix MyDataGetter example after #319 (#532)
authorszym-nuro <[email protected]>
Thu, 26 Dec 2024 17:22:16 +0000 (26 09:22 -0800)
committerGitHub <[email protected]>
Thu, 26 Dec 2024 17:22:16 +0000 (26 11:22 -0600)
implot.h

index 39c10f0..a7961c4 100644 (file)
--- a/implot.h
+++ b/implot.h
@@ -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);