瀏覽代碼

Improved clarity in comment. (#7642)

SleekZ 1 年之前
父節點
當前提交
8ab8965713
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui_internal.h

+ 1 - 1
imgui_internal.h

@@ -2998,7 +2998,7 @@ namespace ImGui
 {
     // Windows
     // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
-    // If this ever crash because g.CurrentWindow is NULL it means that either
+    // If this ever crashes because g.CurrentWindow is NULL, it means that either:
     // - ImGui::NewFrame() has never been called, which is illegal.
     // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
     inline    ImGuiWindow*  GetCurrentWindowRead()      { ImGuiContext& g = *GImGui; return g.CurrentWindow; }