Skip to content

Commit f632e99

Browse files
o1lo01ol1oocharles
authored andcommitted
add string formatter
1 parent 76ea3f8 commit f632e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DearImGui.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ sameLine = liftIO do
296296
text :: MonadIO m => String -> m ()
297297
text t = liftIO do
298298
withCString t \textPtr ->
299-
[C.exp| void { Text($(char* textPtr)) } |]
299+
[C.exp| void { Text("%s", $(char* textPtr)) } |]
300300

301301

302302
-- | A button. Returns 'True' when clicked.

0 commit comments

Comments
 (0)