Add documentation for the new API

This commit is contained in:
Pierre Krieger 2017-01-28 15:33:54 +01:00
parent d86fdb48d1
commit bcb242983b
2 changed files with 84 additions and 17 deletions

View file

@ -119,7 +119,7 @@ impl WindowBuilder {
impl Window {
/// Creates a new OpenGL context, and a Window for platforms where this is appropriate.
///
/// This function is equivalent to `WindowBuilder::new().build()`.
/// This function is equivalent to `WindowBuilder::new().build(events_loop)`.
///
/// Error should be very rare and only occur in case of permission denied, incompatible system,
/// out of memory, etc.