Skip to content

Commit 273d06b

Browse files
committed
Correct typos in comment
1 parent 9e6d84a commit 273d06b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/upgrade/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ impl Manifests {
224224
/// Update dependencies in Cargo.toml file(s) to match the corresponding
225225
/// version in Cargo.lock.
226226
fn sync_to_lockfile(self, dry_run: bool) -> Result<()> {
227-
// Get locked dependencies. If there may be multiple Cargo.toml
228-
// files in the workspace, then they all share the same lockfile,
229-
// so it suffices to get the query metadata for any one of them.
227+
// Get locked dependencies. For workspaces with multiple Cargo.toml
228+
// files, there is only a single lockfile, so it suffices to get
229+
// metadata for any one of Cargo.toml files.
230230
let (manifest, _package) = self.0.iter().next().expect("should have one");
231231
let mut cmd = cargo_metadata::MetadataCommand::new();
232232
cmd.manifest_path(manifest.path.clone());

0 commit comments

Comments
 (0)