From 5279ce6f6f3168a2444a68ff5d8f3d5c3bdb3782 Mon Sep 17 00:00:00 2001 From: Nimrod Gileadi Date: Fri, 1 Sep 2023 04:55:27 -0700 Subject: [PATCH] Fix comment typo in simulate.cc PiperOrigin-RevId: 561921946 Change-Id: I423378df566be7a6ad88fb3526769d298ac32a3b --- simulate/simulate.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index 77edbf1a..404004dd 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -195,7 +195,7 @@ void InitializeProfiler(mj::Simulate* sim) { mju::strcpy_arr(sim->figsize.xlabel, "Video frame"); mju::strcpy_arr(sim->figtimer.xlabel, "Video frame"); - // y-tick nubmer formats + // y-tick number formats mju::strcpy_arr(sim->figconstraint.yformat, "%.0f"); mju::strcpy_arr(sim->figcost.yformat, "%.1f"); mju::strcpy_arr(sim->figsize.yformat, "%.0f"); @@ -261,11 +261,12 @@ void InitializeProfiler(mj::Simulate* sim) { sim->figtimer.range[1][1] = 0.4f; // init x axis on history figures (do not show yet) - for (int n=0; n<6; n++) + for (int n=0; n<6; n++) { for (int i=0; ifigtimer.linedata[n][2*i] = -i; sim->figsize.linedata[n][2*i] = -i; } + } } // update profiler figures @@ -2237,7 +2238,6 @@ void Simulate::Render() { topleftlabel.c_str(), nullptr, &this->platform_ui->mjr_context()); } - // show ui 0 if (this->ui0_enable) { mjui_render(&this->ui0, &this->uistate, &this->platform_ui->mjr_context());