Skip to content

Commit

Permalink
docs: fix minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored and Byron committed Mar 30, 2023
1 parent 6deccbb commit 02c4659
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gitoxide-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The purpose of of this crate is to abstract the user interface of `gix` (the command-line interface) from the actual implementation.
//! The purpose of this crate is to abstract the user interface of `gix` (the command-line interface) from the actual implementation.
//! That way, one day it's possible to provide alternative frontends, including user interfaces.
//!
//! ### What is `gix`?
Expand Down
2 changes: 1 addition & 1 deletion gix-config-value/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl<'a> Path<'a> {
///
/// If this path starts with `~/` or `~user/` or `%(prefix)/`
/// - `~/` is expanded to the value of `home_dir`. The caller can use the [dirs](https://crates.io/crates/dirs) crate to obtain it.
/// It it is required but not set, an error is produced.
/// If it is required but not set, an error is produced.
/// - `~user/` to the specified user’s home directory, e.g `~alice` might get expanded to `/home/alice` on linux, but requires
/// the `home_for_user` function to be provided.
/// The interpolation uses `getpwnam` sys call and is therefore not available on windows.
Expand Down
2 changes: 1 addition & 1 deletion gix-config/src/parse/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub type FrontMatterEvents<'a> = SmallVec<[Event<'a>; 8]>;
/// - Only equal signs (optionally padded by spaces) are valid name/value
/// delimiters.
///
/// Note that that things such as case-sensitivity or duplicate sections are
/// Note that things such as case-sensitivity or duplicate sections are
/// _not_ handled. This parser is a low level _syntactic_ interpreter
/// and higher level wrappers around this parser, which may
/// or may not be zero-copy, should handle _semantic_ values. This also means
Expand Down
2 changes: 1 addition & 1 deletion gix-index/tests/index/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn sort_entries() {
assert_eq!(
file.entry_by_path_and_stage(new_entry_path, 0),
None,
"new entry can't be found to to incorrect order"
"new entry can't be found due to incorrect order"
);

file.sort_entries();
Expand Down
2 changes: 1 addition & 1 deletion gix-odb/src/store_impls/dynamic/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub mod integrity {
impl super::Store {
/// Check the integrity of all objects as per the given `options`.
///
/// Note that this will not not force loading all indices or packs permanently, as we will only use the momentarily loaded disk state.
/// Note that this will not force loading all indices or packs permanently, as we will only use the momentarily loaded disk state.
/// This does, however, include all alternates.
pub fn verify_integrity<C, P, F>(
&self,
Expand Down
2 changes: 1 addition & 1 deletion gix-packetline/src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub enum Stream<'a> {
/// The amount of bytes consumed from input
bytes_consumed: usize,
},
/// A packet line could not yet be parsed to to missing bytes
/// A packet line could not yet be parsed due to missing bytes
Incomplete {
/// The amount of additional bytes needed for the parsing to complete
bytes_needed: usize,
Expand Down
2 changes: 1 addition & 1 deletion gix/src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl<'repo> Object<'repo> {
})
}

/// Obtain a an iterator over commit tokens like in [`to_commit_iter()`][Object::try_to_commit_ref_iter()].
/// Obtain an iterator over commit tokens like in [`to_commit_iter()`][Object::try_to_commit_ref_iter()].
///
/// # Panic
///
Expand Down
2 changes: 1 addition & 1 deletion gix/src/open/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Options {
/// Define what is allowed while opening a repository.
pub permissions: Permissions,
pub(crate) git_dir_trust: Option<gix_sec::Trust>,
/// Warning: this one is copied to to config::Cache - don't change it after repo open or keep in sync.
/// Warning: this one is copied to config::Cache - don't change it after repo open or keep in sync.
pub(crate) filter_config_section: Option<fn(&gix_config::file::Metadata) -> bool>,
pub(crate) lossy_config: Option<bool>,
pub(crate) lenient_config: bool,
Expand Down
2 changes: 1 addition & 1 deletion gix/src/open/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl ThreadSafeRepository {
ref current_dir,
} = options;
let current_dir = current_dir.as_deref().expect("BUG: current_dir must be set by caller");
let git_dir_trust = git_dir_trust.expect("trust must be been determined by now");
let git_dir_trust = git_dir_trust.expect("trust must be determined by now");

// TODO: assure we handle the worktree-dir properly as we can have config per worktree with an extension.
// This would be something read in later as have to first check for extensions. Also this means
Expand Down

0 comments on commit 02c4659

Please sign in to comment.