From 09664cf092f19648c8d2a14ff1b76d418ed0a42f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 16 Oct 2018 13:35:52 +0200 Subject: openpgp: Improve examples. - Fixes #112. --- openpgp/examples/wrap-literal.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openpgp/examples/wrap-literal.rs') diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs index 5d57d118..b7cea74e 100644 --- a/openpgp/examples/wrap-literal.rs +++ b/openpgp/examples/wrap-literal.rs @@ -1,5 +1,5 @@ -/// This program demonstrates how to wrap a stream into a literal data -/// packet. +/// Wraps a stream of data into a literal data packet using the +/// openpgp crate, Sequoia's low-level API. /// /// It is also used to generate test vectors for the armor subsystem. @@ -30,11 +30,11 @@ fn main() { None, None) .expect("Failed to create literal writer"); - // Finally, just copy all the data. + // Copy all the data. io::copy(&mut io::stdin(), &mut literal) .expect("Failed to sign data"); - // Teardown the stack to ensure all the data is written. + // Finally, teardown the stack to ensure all the data is written. literal.finalize() .expect("Failed to write data"); } -- cgit v1.2.3