Skip to content

Commit

Permalink
docs: Add missing parenthesis in with_window_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed May 26, 2024
1 parent 4248d16 commit 998a746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glutin-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl DisplayBuilder {

/// Initialize the OpenGL platform and create a compatible window to use
/// with it when the [`WindowAttributes`] was passed with
/// [`Self::with_window_attributes`]. It's optional, since on some
/// [`Self::with_window_attributes()`]. It's optional, since on some
/// platforms like `Android` it is not available early on, so you want to
/// find configuration and later use it with the [`finalize_window`].
/// But if you don't care about such platform you can always pass
Expand All @@ -92,7 +92,7 @@ impl DisplayBuilder {
/// # Api-specific
///
/// **WGL:** - [`WindowAttributes`] **must** be passed in
/// [`Self::with_window_attributes`] if modern OpenGL(ES) is desired,
/// [`Self::with_window_attributes()`] if modern OpenGL(ES) is desired,
/// otherwise only builtin functions like `glClear` will be available.
pub fn build<Picker>(
mut self,
Expand Down

0 comments on commit 998a746

Please sign in to comment.