From 085d0679e65ac1b65ccfe5603485d0bfeb44b290 Mon Sep 17 00:00:00 2001 From: Mateusz 'Haggus' Mrowiec Date: Tue, 3 Oct 2017 23:21:52 +0200 Subject: [PATCH] Add missing unwrap --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a441f8f1..f46b2714 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,8 @@ let window = video_subsystem.window("Window", 800, 600) .unwrap(); let canvas = window.into_canvas() .index(find_sdl_gl_driver().unwrap()) - .build(); + .build() + .unwrap(); gl::load_with(|name| video_subsystem.gl_get_proc_address(name) as *const _); canvas.window().gl_set_context_to_current();