Skip to content

Commit bc26ac0

Browse files
committed
Auto merge of #12666 - hi-rustin:rustin-patch-typos, r=epage
Fix typos: `informations` -> `information` We do not use information in the plural form.
2 parents 8c3d4f6 + fabe8a5 commit bc26ac0

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/cargo/sources/git/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'cfg> GitSource<'cfg> {
123123
}
124124

125125
/// Returns the packages discovered by this source. It may fetch the Git
126-
/// repository as well as walk the filesystem if package informations
126+
/// repository as well as walk the filesystem if package information
127127
/// haven't yet updated.
128128
pub fn read_packages(&mut self) -> CargoResult<Vec<Package>> {
129129
if self.path_source.is_none() {

src/cargo/sources/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! The trait for sources of Cargo packages and its built-in implemetations.
22
//!
33
//! A source is a provider that contains source files and metadata of packages.
4-
//! It provides a number of methods to fetch those package informations, for
4+
//! It provides a number of methods to fetch those package information, for
55
//! example, querying metadata or downloading files for a package. These
6-
//! informations then can be used as dependencies for other Cargo packages.
6+
//! information then can be used as dependencies for other Cargo packages.
77
//!
88
//! This module provides [`Source`][source::Source] trait as an abstraction of different sources,
99
//! as well as [`SourceMap`][source::SourceMap] struct as a map of all available sources.

src/cargo/sources/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct PathSource<'cfg> {
3030
source_id: SourceId,
3131
/// The root path of this source.
3232
path: PathBuf,
33-
/// Whether this source has updated all package informations it may contain.
33+
/// Whether this source has updated all package information it may contain.
3434
updated: bool,
3535
/// Packages that this sources has discovered.
3636
packages: Vec<Package>,
@@ -97,7 +97,7 @@ impl<'cfg> PathSource<'cfg> {
9797
}
9898

9999
/// Returns the packages discovered by this source. It may walk the
100-
/// filesystem if package informations haven't yet updated.
100+
/// filesystem if package information haven't yet updated.
101101
pub fn read_packages(&self) -> CargoResult<Vec<Package>> {
102102
if self.updated {
103103
Ok(self.packages.clone())

src/cargo/sources/registry/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct LocalRegistry<'cfg> {
6363
/// Path where this local registry extract `.crate` tarballs to.
6464
src_path: Filesystem,
6565
config: &'cfg Config,
66-
/// Whether this source has updated all package informations it may contain.
66+
/// Whether this source has updated all package information it may contain.
6767
updated: bool,
6868
/// Disables status messages.
6969
quiet: bool,

src/cargo/sources/registry/remote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct RemoteRegistry<'cfg> {
7070
head: Cell<Option<git2::Oid>>,
7171
/// This stores sha value of the current HEAD commit for convenience.
7272
current_sha: Cell<Option<InternedString>>,
73-
/// Whether this registry needs to update package informations.
73+
/// Whether this registry needs to update package information.
7474
///
7575
/// See [`RemoteRegistry::mark_updated`] on how to make sure a registry
7676
/// index is updated only once per session.

src/cargo/sources/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub trait Source {
4747
/// Attempts to find the packages that match a dependency request.
4848
///
4949
/// Usually you should call [`Source::block_until_ready`] somewhere and
50-
/// wait until package informations become available. Otherwise any query
50+
/// wait until package information become available. Otherwise any query
5151
/// may return a [`Poll::Pending`].
5252
///
5353
/// The `f` argument is expected to get called when any [`Summary`] becomes available.

0 commit comments

Comments
 (0)