nrf, doc: Don't refer to Default impl of saadc::ChannelConfig

`saadc::ChannelConfig` does not implement the `Default` trait, so
its documentation should not refer to it.  Modify the documentation to
instead describe how the struct should be created and configured.
This commit is contained in:
Frank Plowman 2024-08-09 14:15:23 +01:00
parent b55726c515
commit 0eb0789627
No known key found for this signature in database
GPG Key ID: EE35607A4B0031A4

View File

@ -78,7 +78,8 @@ impl Default for Config {
/// Used to configure an individual SAADC peripheral channel. /// Used to configure an individual SAADC peripheral channel.
/// ///
/// See the `Default` impl for suitable default values. /// Construct using the `single_ended` or `differential` methods. These provide sensible defaults
/// for the public fields, which can be overridden if required.
#[non_exhaustive] #[non_exhaustive]
pub struct ChannelConfig<'d> { pub struct ChannelConfig<'d> {
/// Reference voltage of the SAADC input. /// Reference voltage of the SAADC input.