Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Oct 1, 2021
1 parent 2c3f0be commit bfbe263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
//! -----END CERTIFICATE-----
//! ";
//!
//! let pems = parse_many(SAMPLE);
//! let pems = parse_many(SAMPLE).unwrap();
//! assert_eq!(pems.len(), 2);
//! assert_eq!(pems[0].tag, "INTERMEDIATE CERT");
//! assert_eq!(pems[1].tag, "CERTIFICATE");
Expand Down Expand Up @@ -278,7 +278,7 @@ pub fn parse<B: AsRef<[u8]>>(input: B) -> Result<Pem> {
/// ";
/// let SAMPLE_BYTES: Vec<u8> = SAMPLE.into();
///
/// let pems = parse_many(SAMPLE_BYTES);
/// let pems = parse_many(SAMPLE_BYTES).unwrap();
/// assert_eq!(pems.len(), 2);
/// assert_eq!(pems[0].tag, "INTERMEDIATE CERT");
/// assert_eq!(pems[1].tag, "CERTIFICATE");
Expand Down Expand Up @@ -312,7 +312,7 @@ pub fn parse<B: AsRef<[u8]>>(input: B) -> Result<Pem> {
/// ";
/// let SAMPLE_STRING: Vec<u8> = SAMPLE.into();
///
/// let pems = parse_many(SAMPLE_STRING);
/// let pems = parse_many(SAMPLE_STRING).unwrap();
/// assert_eq!(pems.len(), 2);
/// assert_eq!(pems[0].tag, "INTERMEDIATE CERT");
/// assert_eq!(pems[1].tag, "CERTIFICATE");
Expand Down

0 comments on commit bfbe263

Please sign in to comment.