diff --git a/.docs/contributing-book/theme/highlight.js b/.docs/contributing-book/theme/highlight.js index 453f50c3b..69f021257 100644 --- a/.docs/contributing-book/theme/highlight.js +++ b/.docs/contributing-book/theme/highlight.js @@ -34,7 +34,7 @@ walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){ return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t), t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){ "string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ -l._collapse(e)})))}}class c extends l{constructor(e){super(),this.options=e} +l._collapse(e)})))}}class CodeHighlighter extends l{constructor(e){super(),this.options=e} addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())} addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root ;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){ @@ -193,7 +193,10 @@ const n=y.classNameAliases[e]||e;S.addKeyword(t[0],n)}}else n+=t[0] ;e=v.keywordPatternRe.lastIndex,t=v.keywordPatternRe.exec(R)}var s ;n+=R.substr(e),S.addText(n)}function u(){null!=v.subLanguage?(()=>{ if(""===R)return;let e=null;if("string"==typeof v.subLanguage){ -if(!t[v.subLanguage])return void S.addText(R) +if (!t[v.subLanguage]) { + S.addText(R); + return; +} ;e=E(v.subLanguage,R,!0,O[v.subLanguage]),O[v.subLanguage]=e._top }else e=_(R,v.subLanguage.length?v.subLanguage:null) ;v.relevance>0&&(M+=e.relevance),S.addSublanguage(e._emitter,e.language) @@ -389,4 +392,4 @@ beginKeywords:"true false null" });const se=te;for(const e of Object.keys(ne)){ const t=e.replace("grmr_","").replace("_","-");se.registerLanguage(t,ne[e])} return se}() -;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); \ No newline at end of file +;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); diff --git a/DAO/DAO-contract/tests/functions/info/user_votes.rs b/DAO/DAO-contract/tests/functions/info/user_votes.rs index 8cb5846fd..eb6167484 100644 --- a/DAO/DAO-contract/tests/functions/info/user_votes.rs +++ b/DAO/DAO-contract/tests/functions/info/user_votes.rs @@ -1,6 +1,6 @@ use crate::utils::{interface::info::user_votes, setup::setup}; -mod sucess { +mod success { use super::*; use crate::utils::{ interface::core::{constructor, create_proposal, deposit, vote}, diff --git a/TicTacToe/tictactoe-contract/src/main.sw b/TicTacToe/tictactoe-contract/src/main.sw index 861de1cd4..d4d9f377c 100644 --- a/TicTacToe/tictactoe-contract/src/main.sw +++ b/TicTacToe/tictactoe-contract/src/main.sw @@ -105,7 +105,7 @@ impl Game for Contract { storage.player_turn.write(Some(player_one)); } - // Detemine if there is a winner or if it is a draw + // Determine if there is a winner or if it is a draw if (current_move_counter > 4) { let mut board = storage.board.load_vec(); diff --git a/airdrop/airdrop-contract/tests/functions/core/constructor.rs b/airdrop/airdrop-contract/tests/functions/core/constructor.rs index 43a326488..3b83a1e89 100644 --- a/airdrop/airdrop-contract/tests/functions/core/constructor.rs +++ b/airdrop/airdrop-contract/tests/functions/core/constructor.rs @@ -13,7 +13,7 @@ mod success { }; #[tokio::test] - async fn initalizes() { + async fn initializes() { let (deploy_wallet, wallet1, wallet2, wallet3, asset_id) = setup().await; let (_, _, _, admin, _, num_leaves, asset_supply, _, claim_time, _, _) = defaults(&deploy_wallet, &wallet1, &wallet2, &wallet3).await; diff --git a/native-asset/native-asset-contract/src/main.sw b/native-asset/native-asset-contract/src/main.sw index f0fb1202b..9cae75370 100644 --- a/native-asset/native-asset-contract/src/main.sw +++ b/native-asset/native-asset-contract/src/main.sw @@ -491,7 +491,7 @@ impl Constructor for Contract { /// /// * When ownership has been set before. /// - /// # Number of Storage Acesses + /// # Number of Storage Accesses /// /// * Reads: `1` /// * Write: `1`