Skip to content

Commit e632894

Browse files
committed
fix: typos
1 parent 511a381 commit e632894

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## TODO
22

33
#### Main features
4-
- [x] Serving staic files are located in ``./static/**``
4+
- [x] Serving static files are located in ``./static/**``
55

66
- [x] the HTML builder
77

crates/metassr-bundler/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lazy_static! {
1717
static ref IS_BUNDLING_SCRIPT_LOADED: Mutex<CheckerState> = Mutex::new(CheckerState::default());
1818

1919
/// A simple checker to check if the bundling function is done or not. It is used to block the program until bundling done.
20-
static ref IS_COMPLIATION_WAIT: Arc<CompilationWait> = Arc::new(CompilationWait::default());
20+
static ref IS_COMPILATION_WAIT: Arc<CompilationWait> = Arc::new(CompilationWait::default());
2121
}
2222
static BUILD_SCRIPT: &str = include_str!("./bundle.js");
2323
const BUNDLING_FUNC: &str = "web_bundling";
@@ -111,7 +111,7 @@ impl<'a> WebBundler<'a> {
111111

112112
// Resolve callback when the bundling process is completed successfully
113113
fn resolve(result: Box<dyn MetaCallValue>, _: Box<dyn Any>) -> Box<dyn MetaCallValue> {
114-
let compilation_wait = &*Arc::clone(&IS_COMPLIATION_WAIT);
114+
let compilation_wait = &*Arc::clone(&IS_COMPILATION_WAIT);
115115
let mut started = compilation_wait.checker.lock().unwrap();
116116

117117
// Mark the process as completed and notify waiting threads
@@ -123,7 +123,7 @@ impl<'a> WebBundler<'a> {
123123

124124
// Reject callback for handling errors during the bundling process
125125
fn reject(err: Box<dyn MetaCallValue>, _: Box<dyn Any>) -> Box<dyn MetaCallValue> {
126-
let compilation_wait = &*Arc::clone(&IS_COMPLIATION_WAIT);
126+
let compilation_wait = &*Arc::clone(&IS_COMPILATION_WAIT);
127127
let mut started = compilation_wait.checker.lock().unwrap();
128128

129129
// Log the bundling error and mark the process as completed
@@ -151,12 +151,12 @@ impl<'a> WebBundler<'a> {
151151
future.then(resolve).catch(reject).await_fut();
152152

153153
// Lock the mutex and wait for the bundling process to complete
154-
let compilation_wait = Arc::clone(&IS_COMPLIATION_WAIT);
154+
let compilation_wait = Arc::clone(&IS_COMPILATION_WAIT);
155155
let mut started = compilation_wait.checker.lock().unwrap();
156156

157157
// Block the current thread until the bundling process signals completion
158158
while !started.is_true() {
159-
started = Arc::clone(&IS_COMPLIATION_WAIT).cond.wait(started).unwrap();
159+
started = Arc::clone(&IS_COMPILATION_WAIT).cond.wait(started).unwrap();
160160
}
161161

162162
// Reset the checker state to false after the process completes

docs/getting-started/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Starts the HTTP server to serve your SSR application. You can also use this comm
9191
The port number on which the HTTP server will run.
9292

9393
- **`--serve`**
94-
Enables serving of the generated static site directly, it's used if you build your porject with `ssg` building type.
94+
Enables serving of the generated static site directly, it's used if you build your project with `ssg` building type.
9595

9696
**Usage:**
9797

0 commit comments

Comments
 (0)