Skip to content

Commit 7c171a6

Browse files
committed
chore: fix a large number of spelling issues
Signed-off-by: goldlinker <goldlinker@outlook.jp>
1 parent 9e268f5 commit 7c171a6

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ encode and decode ASN.1 objects in binary.
3939
[X.690] also defines Distinguished Encoding Rules (DER), which is BER with added rules to
4040
ensure canonical and unequivocal binary representation of objects.
4141

42-
The choice of which one to use is usually guided by the speficication of the data format based
42+
The choice of which one to use is usually guided by the specification of the data format based
4343
on BER or DER: for example, X.509 uses DER as encoding representation.
4444

4545
See the related modules for object definitions, functions, and example:

UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Header names have changed:
1010

1111
Changing the names should be enough for upgrades.
1212

13-
To eventually ease upgrades, a new module (`der_parser::ber::compat`) has been added, to provide aliases for these types. It must be imported explicitely.
13+
To eventually ease upgrades, a new module (`der_parser::ber::compat`) has been added, to provide aliases for these types. It must be imported explicitly.
1414

1515
Header fields are now private. Getters/setters have been added, and must be used to access/modify fields. Replace:
1616
- `hdr.len` by `hdr.length()`

src/der/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn parse_der_integer(i: &[u8]) -> DerResult<'_> {
131131
/// Read an bitstring value
132132
///
133133
/// To access the content as plain bytes, you will have to
134-
/// interprete the resulting tuple which will contain in
134+
/// interpret the resulting tuple which will contain in
135135
/// its first item the number of padding bits left at
136136
/// the end of the bit string, and in its second item
137137
/// a `BitStringObject` structure which will, in its sole

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! [X.690] also defines Distinguished Encoding Rules (DER), which is BER with added rules to
2828
//! ensure canonical and unequivocal binary representation of objects.
2929
//!
30-
//! The choice of which one to use is usually guided by the speficication of the data format based
30+
//! The choice of which one to use is usually guided by the specification of the data format based
3131
//! on BER or DER: for example, X.509 uses DER as encoding representation.
3232
//!
3333
//! See the related modules for object definitions, functions, and example:

tests/constructed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn struct02() {
235235
a: Attr {
236236
oid: Oid::from(&[2, 5, 4, 10]).unwrap(), // organizationName
237237
val: BerObject::from_obj(BerObjectContent::IA5String(
238-
"Internet Widgits Pty Ltd",
238+
"Internet Widgets Pty Ltd",
239239
)),
240240
},
241241
},
@@ -275,7 +275,7 @@ fn struct02() {
275275
//
276276
assert_eq!(parsed.1.l[0].a.val.as_str(), Ok("FR"));
277277
assert_eq!(parsed.1.l[1].a.val.as_str(), Ok("Some-State"));
278-
assert_eq!(parsed.1.l[2].a.val.as_str(), Ok("Internet Widgits Pty Ltd"));
278+
assert_eq!(parsed.1.l[2].a.val.as_str(), Ok("Internet Widgets Pty Ltd"));
279279
}
280280

281281
#[test]

tests/der_parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ fn test_der_seq_dn() {
491491
])]),
492492
DerObject::from_set(vec![DerObject::from_seq(vec![
493493
DerObject::from_obj(BerObjectContent::OID(Oid::from(&[2, 5, 4, 10]).unwrap())), // organizationName
494-
DerObject::from_obj(BerObjectContent::UTF8String("Internet Widgits Pty Ltd")),
494+
DerObject::from_obj(BerObjectContent::UTF8String("Internet Widgets Pty Ltd")),
495495
])]),
496496
]);
497497
assert_eq!(parse_der(&bytes), Ok((empty, expected)));
@@ -518,7 +518,7 @@ fn test_der_seq_dn_defined() {
518518
])]),
519519
DerObject::from_set(vec![DerObject::from_seq(vec![
520520
DerObject::from_obj(BerObjectContent::OID(Oid::from(&[2, 5, 4, 10]).unwrap())), // organizationName
521-
DerObject::from_obj(BerObjectContent::UTF8String("Internet Widgits Pty Ltd")),
521+
DerObject::from_obj(BerObjectContent::UTF8String("Internet Widgets Pty Ltd")),
522522
])]),
523523
]);
524524
#[inline]

0 commit comments

Comments
 (0)