diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-08-06 11:19:52 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-08-06 11:19:52 +0200 |
commit | aaeb3447b692819bfb16990dfdd44d384eff1e14 (patch) | |
tree | 48fdab51ce484781d1f970981b63dd1490006545 /openpgp/src/types/server_preferences.rs | |
parent | 30fa2d80ac627324350f1533c5630f25ecc9cedc (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/types/server_preferences.rs')
-rw-r--r-- | openpgp/src/types/server_preferences.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/types/server_preferences.rs b/openpgp/src/types/server_preferences.rs index d129ef00..42425d47 100644 --- a/openpgp/src/types/server_preferences.rs +++ b/openpgp/src/types/server_preferences.rs @@ -118,8 +118,8 @@ impl KeyServerPreferences { /// use openpgp::types::KeyServerPreferences; /// /// # fn main() -> openpgp::Result<()> { - /// let a = KeyServerPreferences::new(&[ 0x1 ]); - /// let b = KeyServerPreferences::new(&[ 0x1, 0x0 ]); + /// let a = KeyServerPreferences::new(&[0x1]); + /// let b = KeyServerPreferences::new(&[0x1, 0x0]); /// /// assert!(a != b); /// assert!(a.normalized_eq(&b)); @@ -139,7 +139,7 @@ impl KeyServerPreferences { /// /// # fn main() -> openpgp::Result<()> { /// // Keyserver Preferences flags 0 and 2. - /// let ksp = KeyServerPreferences::new(&[ 0x5 ]); + /// let ksp = KeyServerPreferences::new(&[0x5]); /// /// assert!(ksp.get(0)); /// assert!(! ksp.get(1)); |