From 0303f4580896584754c892114ec0033ce73406cd Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:57:40 +0300 Subject: [PATCH] Fix docs (#524) * fix form verb build.sh * correct spelling lib.rs * rephrase lib.rs --- docker/neumann/build.sh | 2 +- runtime/neumann/src/lib.rs | 2 +- runtime/oak/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {