diff --git a/glfw/README.md b/glfw/README.md index 6f282e93..54b61b1e 100644 --- a/glfw/README.md +++ b/glfw/README.md @@ -76,7 +76,7 @@ pub fn main() !void { // Wait for the user to close the window. while (!window.shouldClose()) { - glfw.pollEvents(); + try glfw.pollEvents(); } } ```