Doc proofreading

This commit is contained in:
Victor Berger 2018-04-15 11:44:23 +02:00
parent 1140b484cd
commit 93050e2683
2 changed files with 5 additions and 5 deletions

View File

@ -10,9 +10,9 @@
//! You need to instanciate an `Output` for each output global you want //! You need to instanciate an `Output` for each output global you want
//! to advertize to clients. //! to advertize to clients.
//! //!
//! Just insert it in your event loop using the `Output::new(..)` method. //! Just add it to your Display using the `Output::new(..)` method.
//! It returns a state token that gives you access to the `Output` in order //! You can use the returned `Output` to change the properties of your
//! to change it if needed (if the current resolution mode changes for example), //! output (if the current resolution mode changes for example),
//! it'll automatically forward any changes to the clients. //! it'll automatically forward any changes to the clients.
//! //!
//! ``` //! ```
@ -23,7 +23,7 @@
//! //!
//! # fn main() { //! # fn main() {
//! # let (mut display, event_loop) = wayland_server::Display::new(); //! # let (mut display, event_loop) = wayland_server::Display::new();
//! // Insert the Output with given name and physical properties //! // Create the Output with given name and physical properties
//! let (output, _output_global) = Output::new( //! let (output, _output_global) = Output::new(
//! &mut display, // the display //! &mut display, // the display
//! event_loop.token(), // the LoopToken //! event_loop.token(), // the LoopToken

View File

@ -11,7 +11,7 @@
//! [the similar helpers](https://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-shm.c) //! [the similar helpers](https://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-shm.c)
//! of the wayland C libraries. //! of the wayland C libraries.
//! //!
//! To use it, first add a `ShmGlobal` to your event loop, specifying the formats //! To use it, first add a `ShmGlobal` to your display, specifying the formats
//! you want to support (ARGB8888 and XRGB8888 are always considered as supported, //! you want to support (ARGB8888 and XRGB8888 are always considered as supported,
//! as specified by the wayland protocol) and obtain its `ShmToken`. //! as specified by the wayland protocol) and obtain its `ShmToken`.
//! //!