Skip to content

Commit

Permalink
Fix MyDataGetter example after #319 (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
szym-nuro authored Dec 26, 2024
1 parent 35f7955 commit f1b0792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f1b0792

Please sign in to comment.