diff --git a/docs/sdk.md b/docs/sdk.md index bed1e73..2844273 100644 --- a/docs/sdk.md +++ b/docs/sdk.md @@ -47,10 +47,10 @@ * [std::error::SetError (set_error)](#std__error__SetError) * [std::error::SetExitOnError (exit_on_error, set_exit_on_error)](#std__error__SetExitOnError) * [std::error::TriggerError (trigger_error)](#std__error__TriggerError) -* [std::flowcontroll::ForIn (for)](#std__flowcontroll__ForIn) -* [std::flowcontroll::Function (function, fn)](#std__flowcontroll__Function) -* [std::flowcontroll::GoTo (goto)](#std__flowcontroll__GoTo) -* [std::flowcontroll::If (if)](#std__flowcontroll__If) +* [std::flowcontrol::ForIn (for)](#std__flowcontrol__ForIn) +* [std::flowcontrol::Function (function, fn)](#std__flowcontrol__Function) +* [std::flowcontrol::GoTo (goto)](#std__flowcontrol__GoTo) +* [std::flowcontrol::If (if)](#std__flowcontrol__If) * [std::fs::Append (appendfile)](#std__fs__Append) * [std::fs::CopyPath (cp)](#std__fs__CopyPath) * [std::fs::CreateDirectory (mkdir)](#std__fs__CreateDirectory) @@ -1766,8 +1766,8 @@ assert_eq ${error} "my error message" #### Aliases: trigger_error - -## std::flowcontroll::ForIn + +## std::flowcontrol::ForIn ```sh args = array a b c for arg in ${args} @@ -1817,8 +1817,8 @@ end #### Aliases: for - -## std::flowcontroll::Function + +## std::flowcontrol::Function ```sh function my_function # function content @@ -1909,8 +1909,8 @@ echo ${output} #### Aliases: function, fn - -## std::flowcontroll::GoTo + +## std::flowcontrol::GoTo ```sh goto :label ``` @@ -1939,8 +1939,8 @@ echo bad #### Aliases: goto - -## std::flowcontroll::If + +## std::flowcontrol::If ```sh if [command|value|condition] # commands diff --git a/duckscript_sdk/src/sdk/std/flowcontrol/mod.rs b/duckscript_sdk/src/sdk/std/flowcontrol/mod.rs index 28b1891..1ea211e 100755 --- a/duckscript_sdk/src/sdk/std/flowcontrol/mod.rs +++ b/duckscript_sdk/src/sdk/std/flowcontrol/mod.rs @@ -8,7 +8,7 @@ use crate::utils::pckg; use duckscript::types::command::Commands; use duckscript::types::error::ScriptError; -static PACKAGE: &str = "flowcontroll"; +static PACKAGE: &str = "flowcontrol"; pub(crate) fn load(commands: &mut Commands, parent: &str) -> Result<(), ScriptError> { let package = pckg::concat(parent, PACKAGE);