Skip to content

Commit cc48c35

Browse files
nickelcByron
authored andcommitted
docs: fix minor typos
1 parent 7c2e5c8 commit cc48c35

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

STABILITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If there are additional breaking changes without a release, these push back the
106106
### Tier 1: released apps and application crates
107107

108108
Released apps and application crates are marked with major version number 1 or above, like `2.3.0+21.06` and live in tier 1 _(->ST1)_,
109-
with the build identifiers for year (`21`) and and month `06` appended, based on the actual release year and month.
109+
with the build identifiers for year (`21`) and month `06` appended, based on the actual release year and month.
110110

111111
Breaking changes are collected and may be released no more often than every 6 months by incrementing the major version number. If there are additional breaking changes,
112112
these push bac the release date so that they can be tested at least for 3 months. For example, a breaking change happens in January 01, and another breaking change in February 15.

cargo-smart-release/src/cli/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub enum SubCommands {
177177

178178
/// Take into consideration any dependencies of the crates to generate the changelog for.
179179
///
180-
/// This flag is useful if you plan to review and finalize changelogs before a a smart-release, where dependencies
180+
/// This flag is useful if you plan to review and finalize changelogs before a smart-release, where dependencies
181181
/// are taken into consideration by default, instead of handling them one at a time.
182182
#[clap(long, visible_alias = "only", help_heading = Some("CUSTOMIZATION"))]
183183
no_dependencies: bool,

etc/discovery/odb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ to happen while it is running.
262262

263263
Scaling near perfectly with added CPU cores and great performance even in the biggest mono-repos are its hallmark.
264264

265-
As the program is is written with missing objects being the default, it gracefully handles and expects such cases. While running in TUI mode, it offers a manual
265+
As the program is written with missing objects being the default, it gracefully handles and expects such cases. While running in TUI mode, it offers a manual
266266
refresh to the user in case they fetched or pulled in the meantime, to refresh the screen and update its object database to make all newly added objects available.
267267

268268
**Problems and Solutions**
@@ -287,7 +287,7 @@ and 3 receive-packs per second. At peak times during the day, these values are 1
287287
_(assumption is 50.000 * 5 pushes and 10 fetches and 2.5 clones)_. Most client-side push operations are sending just 1 or 2 commits with a couple of changes, averaging pack sizes
288288
of about 20 objects for a total of 5.000.000 new objects per day or an average of ~208.000 per hour. Only 1 branch is typically updated for 250.000 per day or ~10400 per hour.
289289

290-
After each receive-pack was run and the client connection was informed of success, a background job is started to push the changes using the git protocol to a a sibling server
290+
After each receive-pack was run and the client connection was informed of success, a background job is started to push the changes using the git protocol to a sibling server
291291
which also takes part in serving clients and also pushes its changes to this server (the writes caused by it are already part of the above measurements).
292292

293293
`git-maintenance` runs every 5 minutes using the built-in scheduling mechanism to repack references, place loose objects into packs, create and update reverse index caches

gix-config/src/file/section/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl<'event> Body<'event> {
121121
&self.0
122122
}
123123

124-
/// Returns the the range containing the value events for the `key`, with value range being `None` if there is no key-value separator
124+
/// Returns the range containing the value events for the `key`, with value range being `None` if there is no key-value separator
125125
/// and only a 'fake' Value event with an empty string in side.
126126
/// If the value is not found, `None` is returned.
127127
pub(crate) fn key_and_value_range_by(&self, key: &Key<'_>) -> Option<(Range<usize>, Option<Range<usize>>)> {

gix-config/src/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub enum Event<'a> {
5757
/// A completed value. This may be any single-line string, including the empty string
5858
/// if an implicit boolean value is used.
5959
/// Note that these values may contain spaces and any special character. This value is
60-
/// also unprocessed, so it it may contain double quotes that should be
60+
/// also unprocessed, so it may contain double quotes that should be
6161
/// [normalized][crate::value::normalize()] before interpretation.
6262
Value(Cow<'a, BStr>),
6363
/// Represents any token used to signify a newline character. On Unix

gix-config/src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Source {
5555
/// Returns the location at which a file of this type would be stored, or `None` if
5656
/// there is no notion of persistent storage for this source, with `env_var` to obtain environment variables.
5757
/// Note that the location can be relative for repository-local sources like `Local` and `Worktree`,
58-
/// and the caller has to known which base it it relative to, namely the `common_dir` in the `Local` case
58+
/// and the caller has to known which base it is relative to, namely the `common_dir` in the `Local` case
5959
/// and the `git_dir` in the `Worktree` case.
6060
/// Be aware that depending on environment overrides, multiple scopes might return the same path, which should
6161
/// only be loaded once nonetheless.

gix-discover/src/is.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn bare(git_dir_candidate: impl AsRef<Path>) -> bool {
1010
!(git_dir.join("index").exists() || (git_dir.file_name() == Some(OsStr::new(DOT_GIT_DIR))))
1111
}
1212

13-
/// Returns true if `git_dir` is is located within a `.git/modules` directory, indicating it's a submodule clone.
13+
/// Returns true if `git_dir` is located within a `.git/modules` directory, indicating it's a submodule clone.
1414
pub fn submodule_git_dir(git_dir: impl AsRef<Path>) -> bool {
1515
let git_dir = git_dir.as_ref();
1616

gix-protocol/src/fetch/delegate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub trait DelegateBlocking {
8686
/// with each call to `negotiate` to find the common base(s).
8787
///
8888
/// Note that you should not `want` and object that you already have.
89-
/// `refs` are the the tips of on the server side, effectively the latest objects _they_ have.
89+
/// `refs` are the tips of on the server side, effectively the latest objects _they_ have.
9090
///
9191
/// Return `Action::Close` if you know that there are no `haves` on your end to allow the server to send all of its objects
9292
/// as is the case during initial clones.

gix-worktree/src/fs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Capabilities {
1515
/// If true, the filesystem ignores the case of input, which makes `A` the same file as `a`.
1616
/// This is also called case-folding.
1717
pub ignore_case: bool,
18-
/// If true, we assume the the executable bit is honored as part of the files mode. If false, we assume the file system
18+
/// If true, we assume the executable bit is honored as part of the files mode. If false, we assume the file system
1919
/// ignores the executable bit, hence it will be reported as 'off' even though we just tried to set it to be on.
2020
pub executable_bit: bool,
2121
/// If true, the file system supports symbolic links and we should try to create them. Otherwise symbolic links will be checked

gix/src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub mod checkout {
250250
pub mod workers {
251251
use crate::config;
252252

253-
/// The error produced when failing to parse the the `checkout.workers` key.
253+
/// The error produced when failing to parse the `checkout.workers` key.
254254
pub type Error = config::key::Error<gix_config::value::Error, 'n', 'd'>;
255255
}
256256
}

gix/src/object/commit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ impl<'repo> Commit<'repo> {
109109
.map(move |id| id.attach(repo))
110110
}
111111

112-
/// Parse the commit and return the the tree object it points to.
112+
/// Parse the commit and return the tree object it points to.
113113
pub fn tree(&self) -> Result<Tree<'repo>, Error> {
114114
match self.tree_id()?.object()?.try_into_tree() {
115115
Ok(tree) => Ok(tree),
116116
Err(crate::object::try_into::Error { actual, expected, .. }) => Err(Error::ObjectKind { actual, expected }),
117117
}
118118
}
119119

120-
/// Parse the commit and return the the tree id it points to.
120+
/// Parse the commit and return the tree id it points to.
121121
pub fn tree_id(&self) -> Result<crate::Id<'repo>, gix_object::decode::Error> {
122122
gix_object::CommitRefIter::from_bytes(&self.data)
123123
.tree_id()

gix/src/repository/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl crate::Repository {
3636
Ok(Object::from_data(id, kind, buf, self))
3737
}
3838

39-
/// Try to find the object with `id` or return `None` it it wasn't found.
39+
/// Try to find the object with `id` or return `None` if it wasn't found.
4040
pub fn try_find_object(&self, id: impl Into<ObjectId>) -> Result<Option<Object<'_>>, object::find::Error> {
4141
let id = id.into();
4242
if id == gix_hash::ObjectId::empty_tree(self.object_hash()) {

tests/tools/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ fn fixture_bytes_inner(path: impl AsRef<Path>, root: DirectoryRoot) -> Vec<u8> {
270270
/// That way it's trivial to prevent creation of all archives with `generated-archives/*.tar.xz` in the root
271271
/// or more specific `.gitignore` configurations in lower levels of the work tree.
272272
///
273-
/// The latter is useful if the the script's output is platform specific.
273+
/// The latter is useful if the script's output is platform specific.
274274
pub fn scripted_fixture_read_only(script_name: impl AsRef<Path>) -> Result<PathBuf> {
275275
scripted_fixture_read_only_with_args(script_name, None::<String>)
276276
}

0 commit comments

Comments
 (0)