From aaeb3447b692819bfb16990dfdd44d384eff1e14 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 6 Aug 2020 11:19:52 +0200 Subject: openpgp: Fix formatting of vector and array literals in examples. - Align our examples with how the code in the examples of the Rust standard library is formatted. We are writing examples in the hope that downstream users will copy fragments of them, therefore using idiomatic formatting in these snippets is important. --- openpgp/src/message/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openpgp/src/message/mod.rs') diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index 9c30f74f..b0763669 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -167,8 +167,8 @@ impl MessageValidator { /// Add the token `token` at position `path` to the token stream. /// - /// Note: top-level packets are at `[ n ]`, their immediate - /// children are at `[ n, m ]`, etc. + /// Note: top-level packets are at `[n]`, their immediate + /// children are at `[n, m]`, etc. /// /// This function pushes any required `Token::Pop` tokens based on /// changes in the `path`. @@ -200,8 +200,8 @@ impl MessageValidator { /// Add a packet of type `tag` at position `path` to the token /// stream. /// - /// Note: top-level packets are at `[ n ]`, their immediate - /// children are at `[ n, m ]`, etc. + /// Note: top-level packets are at `[n]`, their immediate + /// children are at `[n, m]`, etc. /// /// Unlike `push_token`, this function does not automatically /// account for changes in the depth. If you use this function -- cgit v1.2.3