Skip to content

Commit

Permalink
Doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicceboy committed Sep 14, 2024
1 parent cec30fc commit 47cc708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait Encode: AsnType {
}

/// A **data format** encode any ASN.1 data type.
/// Const `FC` is the count of fields in sequence or set.
/// Const `FC` is the count of root components in sequence or set.
pub trait Encoder<const FC: usize = 0> {
type Ok;
type Error: Error + Into<crate::error::EncodeError> + From<crate::error::EncodeError>;
Expand Down Expand Up @@ -191,7 +191,7 @@ pub trait Encoder<const FC: usize = 0> {

/// Encode a `SEQUENCE` value.
///
/// Const `N` is the count of fields in sequence or set.
/// Const `N` is the count of root components in sequence or set.
/// Generic `C` is the sequence value.
fn encode_sequence<const N: usize, C, F>(
&mut self,
Expand All @@ -212,7 +212,7 @@ pub trait Encoder<const FC: usize = 0> {

/// Encode a `SET` value.
///
/// Const `N` is the count of fields in sequence or set.
/// Const `N` is the count of root components in sequence or set.
/// Generic `C` is the set value.
fn encode_set<const N: usize, C, F>(
&mut self,
Expand Down

0 comments on commit 47cc708

Please sign in to comment.