Fix invalid drop in SHM doc test

Allowing the display to be dropped this early destroys the whole wayland
context before we start using it... bad idea.
This commit is contained in:
Victor Berger 2017-10-01 19:12:38 +02:00 committed by Victor Berger
parent 9e809f85dd
commit 249ae98e0f
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
//! use wayland_server::protocol::wl_shm::Format;
//!
//! # fn main() {
//! # let (_, mut event_loop) = wayland_server::create_display();
//! # let (display, mut event_loop) = wayland_server::create_display();
//! // Insert the ShmGlobal into your event loop
//! // Here, we specify that Yuyv and C8 format are supported
//! // additionnaly to the standart Argb8888 and Xrgb8888.