summaryrefslogtreecommitdiffstats
path: root/openpgp/src/message/mod.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-06 11:19:52 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-06 11:19:52 +0200
commitaaeb3447b692819bfb16990dfdd44d384eff1e14 (patch)
tree48fdab51ce484781d1f970981b63dd1490006545 /openpgp/src/message/mod.rs
parent30fa2d80ac627324350f1533c5630f25ecc9cedc (diff)
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.
Diffstat (limited to 'openpgp/src/message/mod.rs')
-rw-r--r--openpgp/src/message/mod.rs8
1 files changed, 4 insertions, 4 deletions
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