History

Fix typos

Kian-Meng Ang committed 4 years ago

Commit e9fcb701 parent aa639d858 files · +73 −73Browse files

Showing the changes to git-pack/src/data (6 of 58 files). Show all

Unified · Split

6 files
  1. git-pack/src/data/file/decode_entry.rs +3 −3
  2. git-pack/src/data/input/entries_to_bytes.rs +2 −2
  3. git-pack/src/data/output/bytes.rs +1 −1
  4. git-pack/src/data/output/count/mod.rs +1 −1
  5. git-pack/src/data/output/count/objects/types.rs +1 −1
  6. git-pack/src/data/output/entry/iter_from_counts.rs +1 −1
git-pack/src/data/file/decode_entry.rs+3−3
@@ -135,7 +135,7 @@ impl File { · 134 unmodified lines
135135 /// a base object, instead of an in-pack offset.
136136 ///
137137 /// `delta_cache` is a mechanism to avoid looking up base objects multiple times when decompressing multiple objects in a row.
138− /// Use a [Noop-Cache][cache::Never] to disable caching alltogether at the cost of repeating work.
138+ /// Use a [Noop-Cache][cache::Never] to disable caching all together at the cost of repeating work.
139139 pub fn decode_entry(
140140 &self,
141141 entry: crate::data::Entry,
@@ -165,7 +165,7 @@ impl File { · 23 unmodified lines
165165 }
166166 }
167167
168− /// resolve: technically, this shoudln't ever be required as stored local packs don't refer to objects by id
168+ /// resolve: technically, this shouldn't ever be required as stored local packs don't refer to objects by id
169169 /// that are outside of the pack. Unless, of course, the ref refers to an object within this pack, which means
170170 /// it's very, very large as 20bytes are smaller than the corresponding MSB encoded number
171171 fn resolve_deltas(
@@ -298,7 +298,7 @@ impl File { · 126 unmodified lines
298298 let end = first_buffer_size + second_buffer_size;
299299 if delta_range.start < end {
300300 // …this means that the delta size is even larger than two uncompressed worst-case
301− // intermediate results combined. It would already be undesireable to have it bigger
301+ // intermediate results combined. It would already be undesirable to have it bigger
302302 // then the target size (as you could just store the object in whole).
303303 // However, this just means that it reuses existing deltas smartly, which as we rightfully
304304 // remember stand for an object each. However, this means a lot of data is read to restore
git-pack/src/data/input/entries_to_bytes.rs+2−2
@@ -21,7 +21,7 @@ pub struct EntriesToBytesIter<I: Iterator, W> { · 20 unmodified lines
2121 data_version: crate::data::Version,
2222 /// The amount of entries seen so far
2323 num_entries: u32,
24− /// If we are done, no additional writes will occour
24+ /// If we are done, no additional writes will occur
2525 is_done: bool,
2626 /// The kind of hash to use for the digest
2727 object_hash: git_hash::Kind,
@@ -33,7 +33,7 @@ where · 5 unmodified lines
3333 W: std::io::Read + std::io::Write + std::io::Seek,
3434 {
3535 /// Create a new instance reading [entries][input::Entry] from an `input` iterator and write pack data bytes to
36− /// `output` writer, resembling a pack of `version`. The amonut of entries will be dynaimcally determined and
36+ /// `output` writer, resembling a pack of `version`. The amount of entries will be dynaimcally determined and
3737 /// the pack is completed once the last entry was written.
3838 /// `object_hash` is the kind of hash to use for the pack checksum and maybe other places, depending on the version.
3939 ///
git-pack/src/data/output/bytes.rs+1−1
@@ -37,7 +37,7 @@ pub struct FromEntriesIter<I, W> { · 36 unmodified lines
3737 /// It stores the pack offsets at which objects begin.
3838 /// Additionally we store if an object was invalid, and if so we will not write it nor will we allow delta objects to it.
3939 pack_offsets_and_validity: Vec<(u64, bool)>,
40− /// If we are done, no additional writes will occour
40+ /// If we are done, no additional writes will occur
4141 is_done: bool,
4242 }
4343
git-pack/src/data/output/count/mod.rs+1−1
@@ -8,7 +8,7 @@ use crate::data::output::Count; · 7 unmodified lines
88 pub enum PackLocation {
99 /// We did not lookup this object
1010 NotLookedUp,
11− /// The object was looked up and there may be a location in a pack, along with enty information
11+ /// The object was looked up and there may be a location in a pack, along with entry information
1212 LookedUp(Option<crate::data::entry::Location>),
1313 }
1414
git-pack/src/data/output/count/objects/types.rs+1−1
@@ -58,7 +58,7 @@ impl Default for ObjectExpansion { · 57 unmodified lines
5858 }
5959 }
6060
61−/// Configuration options for the pack generation functions provied in [this module][crate::data::output].
61+/// Configuration options for the pack generation functions provided in [this module][crate::data::output].
6262 #[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
6363 #[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
6464 pub struct Options {
git-pack/src/data/output/entry/iter_from_counts.rs+1−1
@@ -351,7 +351,7 @@ mod types { · 350 unmodified lines
351351 PackCopyAndBaseObjects,
352352 }
353353
354− /// Configuration options for the pack generation functions provied in [this module][crate::data::output].
354+ /// Configuration options for the pack generation functions provided in [this module][crate::data::output].
355355 #[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
356356 #[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
357357 pub struct Options {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t