Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
adryzz committed Feb 23, 2024
1 parent f5271cf commit 3fa3579
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ctru-rs/src/services/ac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ impl Ac {
}
}

/// Returns whether the console is connected to Wi-Fi
/// Returns the [SecurityMode] of the currently connected network, or error if the console isn't connected to any network.
///
/// You can check if the console is connected to a network using [`Ac::get_wifi_status()`]
/// # Example
///
/// ```
Expand All @@ -102,6 +103,10 @@ impl Ac {
///
/// let ac = Ac::new()?;
///
/// if ac.get_wifi_status() {
/// println!("Network security: {:?}");
/// }
///
/// #
/// # Ok(())
/// # }
Expand All @@ -119,7 +124,7 @@ impl Ac {

/// Returns the SSID of the Wi-Fi network the console is connected to, or error if the console isn't connected to any network.
///
/// You can check if the console is connected to a network using [`Self::get_wifi_status()`]
/// You can check if the console is connected to a network using [`Ac::get_wifi_status()`]
///
/// # Example
///
Expand Down Expand Up @@ -180,7 +185,7 @@ impl Ac {

/// Returns the connected network's proxy port, if present.
///
/// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`]
/// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`]
///
/// # Example
///
Expand Down Expand Up @@ -210,7 +215,7 @@ impl Ac {

/// Returns the connected network's proxy username, if present.
///
/// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`]
/// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`]
///
/// # Example
///
Expand Down Expand Up @@ -242,7 +247,7 @@ impl Ac {

/// Returns the connected network's proxy password, if present.
///
/// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`]
/// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`]
///
/// # Example
///
Expand Down

0 comments on commit 3fa3579

Please sign in to comment.