summaryrefslogtreecommitdiffstats
path: root/widget/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-10 00:02:17 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-10 00:02:17 +0100
commit564ad95806efd1259a2244a685b648346b460abf (patch)
treeb8929e4c9c61af800f1dba8664f19a15c0dc13a2 /widget/src
parent8b14f88f5ffa2125908fa53a4fa955ac7818e12e (diff)
downloadiced-564ad95806efd1259a2244a685b648346b460abf.tar.gz
iced-564ad95806efd1259a2244a685b648346b460abf.tar.bz2
iced-564ad95806efd1259a2244a685b648346b460abf.zip
Fix leftover mentions of `State` in `QRCode` docs
Diffstat (limited to 'widget/src')
-rw-r--r--widget/src/qr_code.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/qr_code.rs b/widget/src/qr_code.rs
index ece9b9e1..eeb1526f 100644
--- a/widget/src/qr_code.rs
+++ b/widget/src/qr_code.rs
@@ -174,7 +174,7 @@ pub struct Data {
}
impl Data {
- /// Creates a new [`State`] with the provided data.
+ /// Creates a new [`Data`] with the provided data.
///
/// This method uses an [`ErrorCorrection::Medium`] and chooses the smallest
/// size to display the data.
@@ -184,7 +184,7 @@ impl Data {
Ok(Self::build(encoded))
}
- /// Creates a new [`State`] with the provided [`ErrorCorrection`].
+ /// Creates a new [`Data`] with the provided [`ErrorCorrection`].
pub fn with_error_correction(
data: impl AsRef<[u8]>,
error_correction: ErrorCorrection,
@@ -197,7 +197,7 @@ impl Data {
Ok(Self::build(encoded))
}
- /// Creates a new [`State`] with the provided [`Version`] and
+ /// Creates a new [`Data`] with the provided [`Version`] and
/// [`ErrorCorrection`].
pub fn with_version(
data: impl AsRef<[u8]>,
@@ -276,7 +276,7 @@ impl From<ErrorCorrection> for qrcode::EcLevel {
}
}
-/// An error that occurred when building a [`State`] for a [`QRCode`].
+/// An error that occurred when building a [`Data`] for a [`QRCode`].
#[derive(Debug, Clone, Copy, PartialEq, Eq, Error)]
pub enum Error {
/// The data is too long to encode in a QR code for the chosen [`Version`].