From 77eeadd4070f1eaec55a7dedd601afa3082c3f04 Mon Sep 17 00:00:00 2001 From: InKryption <59504965+InKryption@users.noreply.github.com> Date: Tue, 23 Nov 2021 18:24:54 +0100 Subject: [PATCH] glfw: update possible errors comment Add 'FormatUnavailable' as a possible error to the 'getClipboardString' comment, which can set it on wayland --- glfw/src/clipboard.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/src/clipboard.zig b/glfw/src/clipboard.zig index cefb0a7e..336c6b22 100644 --- a/glfw/src/clipboard.zig +++ b/glfw/src/clipboard.zig @@ -36,7 +36,7 @@ pub inline fn setClipboardString(value: [*:0]const u8) Error!void { /// /// @return The contents of the clipboard as a UTF-8 encoded string. /// -/// Possible errors include glfw.Error.NotInitialized and glfw.Error.PlatformError. +/// Possible errors include glfw.Error.NotInitialized, glfw.Error.FormatUnavailable and glfw.Error.PlatformError. /// /// @pointer_lifetime The returned string is allocated and freed by GLFW. You should not free it /// yourself. It is valid until the next call to glfw.getClipboardString or glfw.setClipboardString