layout: fix typo, and improve pronoun
authorHoàng Đức Hiếu <github@hdhoang.space>
Thu, 12 Oct 2017 04:04:58 +0000 (13:04 +0900)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2017 04:04:58 +0000 (13:04 +0900)
"it" is ambiguous between `new` and `at` (the most recent noun).

src/cargo/ops/cargo_rustc/layout.rs

index b28e1bb9d935ed9cb64b848cbea138aab39b2cde..464a68945bd3320927e90c318e82c59b4d2d9eb8 100644 (file)
@@ -78,11 +78,11 @@ pub fn is_bad_artifact_name(name: &str) -> bool {
 }
 
 impl Layout {
-    /// Calcuate the paths for build output, lock the build directory, and return as a Layout.
+    /// Calculate the paths for build output, lock the build directory, and return as a Layout.
     ///
     /// This function will block if the directory is already locked.
     ///
-    /// Differs from `at` in that it calculates the root path from the workspace target directory,
+    /// Differs from `at` in that this calculates the root path from the workspace target directory,
     /// adding the target triple and the profile (debug, release, ...).
     pub fn new(ws: &Workspace,
                triple: Option<&str>,
@@ -98,7 +98,7 @@ impl Layout {
         Layout::at(ws.config(), path)
     }
 
-    /// Calcuate the paths for build output, lock the build directory, and return as a Layout.
+    /// Calculate the paths for build output, lock the build directory, and return as a Layout.
     ///
     /// This function will block if the directory is already locked.
     pub fn at(config: &Config, root: Filesystem) -> CargoResult<Layout> {