Skip to content

Commit 0b47c15

Browse files
committed
f update comment
1 parent 38aff17 commit 0b47c15

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lightning/src/ln/features.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ mod sealed {
7171
use prelude::*;
7272
use ln::features::Features;
7373

74-
/// The context in which [`Features`] are applicable. Defines which features are required and
75-
/// which are optional for the context.
74+
/// The context in which [`Features`] are applicable. Defines which features are known to the
75+
/// implementation, though specification of them as required or optional is up to the code
76+
/// constructing a features object.
7677
pub trait Context {
77-
/// Bitmask for selecting features that are known to the implementation, regardless of
78-
/// whether each feature is required or optional.
78+
/// Bitmask for selecting features that are known to the implementation.
7979
const KNOWN_FEATURE_MASK: &'static [u8];
8080
}
8181

@@ -89,8 +89,6 @@ mod sealed {
8989

9090
impl Context for $context {
9191
const KNOWN_FEATURE_MASK: &'static [u8] = &[
92-
// Similar as above, but set both flags for each feature regardless of whether
93-
// the feature is required or optional.
9492
$(
9593
0b00_00_00_00 $(|
9694
<Self as $known_feature>::REQUIRED_MASK |

0 commit comments

Comments
 (0)