diff --git a/docker/neumann/build.sh b/docker/neumann/build.sh index 4cb6745c4..524f1d4d0 100755 --- a/docker/neumann/build.sh +++ b/docker/neumann/build.sh @@ -2,7 +2,7 @@ # Please execute this script in the project root directory. set -e -# The following line ensure we run from the project root +# The following line ensures we run from the project root PROJECT_ROOT=`git rev-parse --show-toplevel` cd $PROJECT_ROOT diff --git a/runtime/neumann/src/lib.rs b/runtime/neumann/src/lib.rs index c4052e8bc..28db25ac9 100644 --- a/runtime/neumann/src/lib.rs +++ b/runtime/neumann/src/lib.rs @@ -877,7 +877,7 @@ impl EnsureProxy for AutomationEnsureProxy { Some(ProxyType::Any), ) .map_err(|_| "proxy error: expected `ProxyType::Any`")?; - // We only allow to use it for delay zero proxies, as the call will immediatly be executed + // We only allow to use it for delay zero proxies, as the call will immediately be executed ensure!(def.delay.is_zero(), "proxy delay is Non-zero`"); Ok(()) } diff --git a/runtime/oak/src/lib.rs b/runtime/oak/src/lib.rs index 857dbfa5a..313823f4f 100644 --- a/runtime/oak/src/lib.rs +++ b/runtime/oak/src/lib.rs @@ -769,7 +769,7 @@ type ScheduleOrigin = EitherOfDiverse< pallet_collective::EnsureProportionAtLeast, >; -/// Used the compare the privilege of an origin inside the scheduler. +/// Used to compare the privilege of an origin inside the scheduler. pub struct OriginPrivilegeCmp; impl PrivilegeCmp for OriginPrivilegeCmp {