File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl<'cfg> GitSource<'cfg> {
123
123
}
124
124
125
125
/// 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
127
127
/// haven't yet updated.
128
128
pub fn read_packages ( & mut self ) -> CargoResult < Vec < Package > > {
129
129
if self . path_source . is_none ( ) {
Original file line number Diff line number Diff line change 1
1
//! The trait for sources of Cargo packages and its built-in implemetations.
2
2
//!
3
3
//! 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
5
5
//! 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.
7
7
//!
8
8
//! This module provides [`Source`][source::Source] trait as an abstraction of different sources,
9
9
//! as well as [`SourceMap`][source::SourceMap] struct as a map of all available sources.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub struct PathSource<'cfg> {
30
30
source_id : SourceId ,
31
31
/// The root path of this source.
32
32
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.
34
34
updated : bool ,
35
35
/// Packages that this sources has discovered.
36
36
packages : Vec < Package > ,
@@ -97,7 +97,7 @@ impl<'cfg> PathSource<'cfg> {
97
97
}
98
98
99
99
/// 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.
101
101
pub fn read_packages ( & self ) -> CargoResult < Vec < Package > > {
102
102
if self . updated {
103
103
Ok ( self . packages . clone ( ) )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ pub struct LocalRegistry<'cfg> {
63
63
/// Path where this local registry extract `.crate` tarballs to.
64
64
src_path : Filesystem ,
65
65
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.
67
67
updated : bool ,
68
68
/// Disables status messages.
69
69
quiet : bool ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub struct RemoteRegistry<'cfg> {
70
70
head : Cell < Option < git2:: Oid > > ,
71
71
/// This stores sha value of the current HEAD commit for convenience.
72
72
current_sha : Cell < Option < InternedString > > ,
73
- /// Whether this registry needs to update package informations .
73
+ /// Whether this registry needs to update package information .
74
74
///
75
75
/// See [`RemoteRegistry::mark_updated`] on how to make sure a registry
76
76
/// index is updated only once per session.
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub trait Source {
47
47
/// Attempts to find the packages that match a dependency request.
48
48
///
49
49
/// 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
51
51
/// may return a [`Poll::Pending`].
52
52
///
53
53
/// The `f` argument is expected to get called when any [`Summary`] becomes available.
You can’t perform that action at this time.
0 commit comments