diff options
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 598c213c..ba21f764 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -875,8 +875,8 @@ impl<'a> Signer<'a> { /// } /// } /// - /// let mut verifier = - /// DetachedVerifier::from_bytes(p, &sink, Helper(&cert), None)?; + /// let mut verifier = DetachedVerifierBuilder::from_bytes(&sink)? + /// .with_policy(p, None, Helper(&cert))?; /// /// verifier.verify_bytes(b"Make it so, number one!")?; /// # Ok(()) } |