Skip to content

Commit 8ede832

Browse files
authored
der: followup to docs changes (#2233)
1 parent 610211c commit 8ede832

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

der/src/asn1/bit_string/allowed_len_bit_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use core::ops::RangeInclusive;
22

33
use crate::{Error, ErrorKind, Tag};
44

5-
/// Trait on automatically derived by `BitString` macro.
5+
/// Trait automatically derived on structs, by the `BitString` macro.
66
/// Used for checking if binary data fits into defined struct.
77
///
88
/// ```
@@ -31,7 +31,7 @@ pub trait AllowedLenBitString {
3131
/// Implementer must specify how many bits are allowed
3232
const ALLOWED_LEN_RANGE: RangeInclusive<u16>;
3333

34-
/// Check the big length.
34+
/// Check the bit length.
3535
///
3636
/// # Errors
3737
/// Returns an error if the bitstring is not in expected length range.

der/src/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub trait EncodeValue {
233233
/// encoded as ASN.1 DER.
234234
///
235235
/// # Errors
236-
/// Returns an error if the value length could not be computed.
236+
/// Returns an error if the value length could not be computed (e.g. overflow).
237237
fn value_len(&self) -> Result<Length>;
238238

239239
/// Encode value (sans [`Tag`]+[`Length`] header) as ASN.1 DER using the

der/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
//! - [`PrintableStringRef`]: ASN.1 `PrintableString` (ASCII subset).
5656
//! - [`TeletexStringRef`]: ASN.1 `TeletexString`.
5757
//! - [`VideotexStringRef`]: ASN.1 `VideotexString`.
58-
//! - [`SequenceOf`]: ASN.1 `SEQUENCE OF`.
58+
//! - [`SequenceOf`] (requires `heapless` feature): ASN.1 `SEQUENCE OF`.
5959
//! - [`SetOf`] (requires `heapless` feature), [`SetOfVec`] (requires `alloc`): ASN.1 `SET OF`.
6060
//! - [`UintRef`]: ASN.1 unsigned `INTEGER` with raw access to encoded bytes.
6161
//! - [`UtcTime`]: ASN.1 `UTCTime`.

der/tests/derive_no_alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! issues related to these tests, run:
77
//!
88
//! ```text
9-
//! $ cargo expand --test derive_heapless --all-features
9+
//! $ cargo expand --test derive_no_alloc --all-features
1010
//! ```
1111
1212
#![cfg(feature = "derive")]

0 commit comments

Comments
 (0)