summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-05 11:44:14 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-05 11:44:14 +0200
commit78e9b6626ba96fa918f53e524720d595a6bb9340 (patch)
treea262b39e128516cfa02890ece62ea81878cd4e6a
parent7561d2a4926fdaacebe4db8131b4b0279458683b (diff)
openpgp: Fix documentation.
-rw-r--r--openpgp/src/types/bitfield.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/openpgp/src/types/bitfield.rs b/openpgp/src/types/bitfield.rs
index 54468989..0b45d3ad 100644
--- a/openpgp/src/types/bitfield.rs
+++ b/openpgp/src/types/bitfield.rs
@@ -62,7 +62,7 @@ impl Bitfield {
&self.raw
}
- /// Returns whether the specified keyserver preferences flag is set.
+ /// Returns whether the specified flag is set.
pub fn get(&self, bit: usize) -> bool {
let byte = bit / 8;
@@ -83,7 +83,7 @@ impl Bitfield {
self
}
- /// Sets the specified keyserver preferences flag.
+ /// Sets the specified flag.
///
/// This also clears any padding (trailing NUL bytes).
pub fn set(mut self, bit: usize) -> Self {
@@ -96,7 +96,7 @@ impl Bitfield {
self.clear_padding()
}
- /// Clears the specified keyserver preferences flag.
+ /// Clears the specified flag.
///
/// This also clears any padding (trailing NUL bytes).
pub fn clear(mut self, bit: usize) -> Self {
@@ -108,4 +108,3 @@ impl Bitfield {
self.clear_padding()
}
}
-