Compare commits

...

4 Commits

Author SHA1 Message Date
Philipp Oppermann
afeed7477b Merge pull request #1106 from asami-kawasaki/delete-unnecessary-brackets
Delete unnecessary brackets
2022-05-17 09:26:36 +02:00
asami
611698ec5f Delete unnecessary brackets 2022-05-17 14:57:54 +09:00
Philipp Oppermann
c34db52262 Merge pull request #1105 from MysticalUser/patch-1
Fix minor grammar mistakes
2022-05-16 17:42:54 +02:00
MysticalUser
71870a05b0 Fix minor grammar mistakes 2022-05-15 15:46:34 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -432,7 +432,7 @@ pub extern "C" fn _start() -> ! {
}
```
Remember, this `_start` function is used when running `cargo test --lib`, since Rust's tests the `lib.rs` completely independent of the `main.rs`. We need to call `init` here to set up an IDT before running the tests.
Remember, this `_start` function is used when running `cargo test --lib`, since Rust tests the `lib.rs` completely independently of the `main.rs`. We need to call `init` here to set up an IDT before running the tests.
Now we can create a `test_breakpoint_exception` test:

View File

@@ -425,7 +425,7 @@ ExampleStateMachine::WaitingOnFooTxt(state) => {
};
*self = ExampleStateMachine::WaitingOnBarTxt(state);
} else {
*self = ExampleStateMachine::End(EndState));
*self = ExampleStateMachine::End(EndState);
return Poll::Ready(content);
}
}
@@ -446,7 +446,7 @@ ExampleStateMachine::WaitingOnBarTxt(state) => {
match state.bar_txt_future.poll(cx) {
Poll::Pending => return Poll::Pending,
Poll::Ready(bar_txt) => {
*self = ExampleStateMachine::End(EndState));
*self = ExampleStateMachine::End(EndState);
// from body of `example`
return Poll::Ready(state.content + &bar_txt);
}