Skip to content

Commit

Permalink
Hide the internal implementation of Encoding in the documentation
Browse files Browse the repository at this point in the history
The implementation itself (`InternalEncoding`) is already hidden, but the field
in the definition of `Encoding` is not.

Fixes #75
  • Loading branch information
ia0 committed Jul 5, 2023
1 parent 8c8fe8e commit 1b9ab45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ pub type InternalEncoding = &'static [u8];
// - width % dec(bit) == 0
// - for all x in separator values[x] is IGNORE
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Encoding(pub InternalEncoding);
pub struct Encoding(#[doc(hidden)] pub InternalEncoding);

/// How to translate characters when decoding
///
Expand Down

0 comments on commit 1b9ab45

Please sign in to comment.