fix doc comments

This commit is contained in:
dignifiedquire
2023-07-24 14:33:39 +02:00
parent 67036adada
commit cff7f50571
2 changed files with 2 additions and 2 deletions

View File

@@ -414,7 +414,7 @@ impl From<SendProgress> for EventType {
/// This is a long running operation which will only when completed. /// This is a long running operation which will only when completed.
/// ///
/// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It /// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It
/// does avoid having [`iroh::provider::Ticket`] in the primary API however, without /// does avoid having [`iroh::dial::Ticket`] in the primary API however, without
/// having to revert to untyped bytes. /// having to revert to untyped bytes.
pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> { pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
ensure!( ensure!(

View File

@@ -497,7 +497,7 @@ fn decode_webrtc_instance(_context: &Context, qr: &str) -> Result<Qr> {
/// Decodes a [`DCBACKUP_SCHEME`] QR code. /// Decodes a [`DCBACKUP_SCHEME`] QR code.
/// ///
/// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the /// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the
/// [`iroh::provider::Ticket`]'s `Display` impl. /// [`iroh::dial::Ticket`]'s `Display` impl.
fn decode_backup(qr: &str) -> Result<Qr> { fn decode_backup(qr: &str) -> Result<Qr> {
let payload = qr let payload = qr
.strip_prefix(DCBACKUP_SCHEME) .strip_prefix(DCBACKUP_SCHEME)