Fixed misleading local name (#4493) + minor typo (#6369)

This commit is contained in:
ocornut
2023-04-25 16:39:02 +02:00
parent fd943182bd
commit 15da1a9abc
2 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ backslash \ within a string literal, you need to write it double backslash "\\":
```cpp
io.Fonts->AddFontFromFileTTF("MyFolder\MyFont.ttf", size); // WRONG (you are escaping the M here!)
io.Fonts->AddFontFromFileTTF("MyFolder\\MyFont.ttf", size; // CORRECT (Windows only)
io.Fonts->AddFontFromFileTTF("MyFolder\\MyFont.ttf", size); // CORRECT (Windows only)
io.Fonts->AddFontFromFileTTF("MyFolder/MyFont.ttf", size); // ALSO CORRECT
```