summaryrefslogtreecommitdiffstats
path: root/guide/src/chapter_01.md
diff options
context:
space:
mode:
Diffstat (limited to 'guide/src/chapter_01.md')
-rw-r--r--guide/src/chapter_01.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guide/src/chapter_01.md b/guide/src/chapter_01.md
index 78978161..fa4b505c 100644
--- a/guide/src/chapter_01.md
+++ b/guide/src/chapter_01.md
@@ -102,7 +102,7 @@ fn main() {
# Ok(vec![self.cert.clone()])
# }
#
-# fn check(&mut self, structure: &MessageStructure)
+# fn check(&mut self, structure: MessageStructure)
# -> openpgp::Result<()> {
# // In this function, we implement our signature verification
# // policy.
@@ -247,7 +247,7 @@ fn generate() -> openpgp::Result<openpgp::Cert> {
# Ok(vec![self.cert.clone()])
# }
#
-# fn check(&mut self, structure: &MessageStructure)
+# fn check(&mut self, structure: MessageStructure)
# -> openpgp::Result<()> {
# // In this function, we implement our signature verification
# // policy.
@@ -392,7 +392,7 @@ fn sign(sink: &mut Write, plaintext: &str, tsk: &openpgp::Cert)
# Ok(vec![self.cert.clone()])
# }
#
-# fn check(&mut self, structure: &MessageStructure)
+# fn check(&mut self, structure: MessageStructure)
# -> openpgp::Result<()> {
# // In this function, we implement our signature verification
# // policy.
@@ -548,7 +548,7 @@ impl<'a> VerificationHelper for Helper<'a> {
Ok(vec![self.cert.clone()])
}
- fn check(&mut self, structure: &MessageStructure)
+ fn check(&mut self, structure: MessageStructure)
-> openpgp::Result<()> {
// In this function, we implement our signature verification
// policy.