From 8a828511e836de5e6e043c21bd9b3c0eec80e1e2 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:53:07 +0100 Subject: [PATCH] Fix typos in comments and variable names As reported by my editor spell checker. --- libcnb-data/src/launch.rs | 2 +- libcnb-package/src/util.rs | 2 +- libcnb-test/src/test_runner.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libcnb-data/src/launch.rs b/libcnb-data/src/launch.rs index 0265a25f..d9e500b9 100644 --- a/libcnb-data/src/launch.rs +++ b/libcnb-data/src/launch.rs @@ -143,7 +143,7 @@ impl WorkingDirectory { // Custom Serialize implementation since we want to always serialize as a string. Serde's untagged // enum representation does not work here since App would serialize as null, but we want a default -// string value. #[serde(rename = ".")] doesnt work here. There are more generic solutions that can +// string value. #[serde(rename = ".")] doesn't work here. There are more generic solutions that can // be found on the web, but they're much more heavyweight than this simple Serialize implementation. impl Serialize for WorkingDirectory { fn serialize(&self, serializer: S) -> Result diff --git a/libcnb-package/src/util.rs b/libcnb-package/src/util.rs index 38c2359d..ab3c677d 100644 --- a/libcnb-package/src/util.rs +++ b/libcnb-package/src/util.rs @@ -4,7 +4,7 @@ use std::path::{Component, Path, PathBuf}; /// /// # Errors /// -/// Returns `Err` if an IO error occurred during the size calucaltion. +/// Returns `Err` if an IO error occurred during the size calculation. pub fn calculate_dir_size(path: impl AsRef) -> std::io::Result { let mut size_in_bytes = 0; diff --git a/libcnb-test/src/test_runner.rs b/libcnb-test/src/test_runner.rs index ee0e2006..e4947801 100644 --- a/libcnb-test/src/test_runner.rs +++ b/libcnb-test/src/test_runner.rs @@ -111,14 +111,14 @@ impl TestRunner { pack_command.buildpack(crate_buildpack_dir); } - BuildpackReference::WorkspaceBuildpack(builpack_id) => { + BuildpackReference::WorkspaceBuildpack(buildpack_id) => { let buildpack_dir = build::package_buildpack( - builpack_id, + buildpack_id, config.cargo_profile, &config.target_triple, &cargo_manifest_dir, buildpacks_target_dir.path() - ).unwrap_or_else(|_| panic!("Test references buildpack `{builpack_id}`, but this directory wasn't packaged as a buildpack. This is an internal libcnb-test error, please report any occurrences")); + ).unwrap_or_else(|_| panic!("Test references buildpack `{buildpack_id}`, but this directory wasn't packaged as a buildpack. This is an internal libcnb-test error, please report any occurrences")); pack_command.buildpack(buildpack_dir); }