Skip to content

Commit 64e27af

Browse files
authored
Fix some typos in documentation (gimli-rs#645)
1 parent cc8c8fd commit 64e27af

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ and adding support for writing CFI.
546546

547547
### Fixed
548548

549-
* The `code_alignment_factor` is now used when evaluting CFI instructions
549+
* The `code_alignment_factor` is now used when evaluating CFI instructions
550550
that advance the location.
551551
[#401](https://github.com/gimli-rs/gimli/pull/401)
552552

src/read/endian_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ where
5757
(self.range_to(..idx), self.range_from(idx..))
5858
}
5959

60-
/// Find the first occurence of a byte in the slice, and return its index.
60+
/// Find the first occurrence of a byte in the slice, and return its index.
6161
#[inline]
6262
pub fn find(&self, byte: u8) -> Option<usize> {
6363
self.slice.iter().position(|ch| *ch == byte)

src/read/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ pub trait Reader: Debug + Clone {
245245
/// it is associated with this reader.
246246
fn lookup_offset_id(&self, id: ReaderOffsetId) -> Option<Self::Offset>;
247247

248-
/// Find the index of the first occurence of the given byte.
248+
/// Find the index of the first occurrence of the given byte.
249249
/// The offset of the reader is not changed.
250250
fn find(&self, byte: u8) -> Result<Self::Offset>;
251251

src/read/value.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl Value {
367367
Value::I64(value) => Value::I64(value.wrapping_neg()),
368368
Value::F32(value) => Value::F32(-value),
369369
Value::F64(value) => Value::F64(-value),
370-
// It's unclear if these should implicity convert to a signed value.
370+
// It's unclear if these should implicitly convert to a signed value.
371371
// For now, we don't support them.
372372
Value::U8(_) | Value::U16(_) | Value::U32(_) | Value::U64(_) => {
373373
return Err(Error::UnsupportedTypeOperation);
@@ -664,7 +664,7 @@ impl Value {
664664
Value::U16(v1) => Value::U16(if v2 >= 16 { 0 } else { v1 >> v2 }),
665665
Value::U32(v1) => Value::U32(if v2 >= 32 { 0 } else { v1 >> v2 }),
666666
Value::U64(v1) => Value::U64(if v2 >= 64 { 0 } else { v1 >> v2 }),
667-
// It's unclear if signed values should implicity convert to an unsigned value.
667+
// It's unclear if signed values should implicitly convert to an unsigned value.
668668
// For now, we don't support them.
669669
Value::I8(_) | Value::I16(_) | Value::I32(_) | Value::I64(_) => {
670670
return Err(Error::UnsupportedTypeOperation);
@@ -737,7 +737,7 @@ impl Value {
737737
} else {
738738
v1 >> v2
739739
}),
740-
// It's unclear if unsigned values should implicity convert to a signed value.
740+
// It's unclear if unsigned values should implicitly convert to a signed value.
741741
// For now, we don't support them.
742742
Value::U8(_) | Value::U16(_) | Value::U32(_) | Value::U64(_) => {
743743
return Err(Error::UnsupportedTypeOperation);

src/write/unit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub struct Unit {
159159
// - entries can be added in any order
160160
// - entries have a fixed id
161161
// - able to quickly lookup an entry from its id
162-
// Limitations of current implemention:
162+
// Limitations of current implementation:
163163
// - mutable iteration of children is messy due to borrow checker
164164
entries: Vec<DebuggingInformationEntry>,
165165
/// The index of the root entry in entries.

0 commit comments

Comments
 (0)