Skip to content

Commit

Permalink
Fix minor issues in OSDK section
Browse files Browse the repository at this point in the history
  • Loading branch information
tatetian committed Mar 1, 2024
1 parent 73a7314 commit b7485fb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions _layouts/homes.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
Install Asterinas OSDK
</div>
<div class="ti-jump-text">
cargo install aster-osdk
cargo install cargo-osdk
</div>
</div>
<div class="ti-jump">
Expand All @@ -218,7 +218,7 @@
Create a Rust project for your "Hello World" kernel.
</div>
<div class="ti-jump-text">
cargo osdk new my-first-os --bin
cargo osdk new my-first-os --kernel
</div>
</div>
<div class="ti-jump">
Expand Down Expand Up @@ -281,12 +281,12 @@
</div>
<div>
<pre class="ti-jump-code">
<code >#<span style="color: #FF6BF9;">[</span>cfg<span style="color: #FF6BF9;">(</span> ktest<span style="color: #FF6BF9;">)]</span>
<code >#<span style="color: #FF6BF9;">[</span>cfg<span style="color: #FF6BF9;">(</span>ktest<span style="color: #FF6BF9;">)]</span>
<span style="color: #00B7BD;">mod</span> tests <span style="color: #FF6BF9;">{</span>
#<span style="color: #FF6BF9;">[</span>ktest<span style="color: #FF6BF9;">]</span>
<span style="color: #00B7BD;">fn it_works</span><span style="color: #FF6BF9;">() {</span>
<span style="color: #00B7BD;">assert_eq</span><span style="color: #FF6BF9;">!(</span><span style="color: #00B7BD;">true</span>, <span style="color: #00B7BD;">true</span><span style="color: #FF6BF9;">)</span>;
<span style="color: #FF6BF9;">}</span>
#<span style="color: #FF6BF9;">[</span>ktest<span style="color: #FF6BF9;">]</span>
<span style="color: #00B7BD;">fn it_works</span><span style="color: #FF6BF9;">() {</span>
<span style="color: #00B7BD;">assert_eq</span><span style="color: #FF6BF9;">!(</span><span style="color: #00B7BD;">true</span>, <span style="color: #00B7BD;">true</span><span style="color: #FF6BF9;">)</span>;
<span style="color: #FF6BF9;">}</span>
<span style="color: #FF6BF9;">}</span>
</code>
</pre>
Expand Down Expand Up @@ -350,7 +350,7 @@
Install Asterinas OSDK
</div>
<div class="ti-jump-text">
cargo install aster-osdk
cargo install cargo-osdk
</div>
</div>
<div class="ti-jump">
Expand All @@ -359,7 +359,7 @@
Create a Rust project for your "Hello World" kernel.
</div>
<div class="ti-jump-text">
cargo osdk new my-first-os --bin
cargo osdk new my-first-os --kernel
</div>
</div>
<div class="ti-jump">
Expand All @@ -383,12 +383,12 @@
</div>
<div>
<pre class="ti-jump-code">
<code >#<span style="color: #FF6BF9;">[</span>cfg<span style="color: #FF6BF9;">(</span> ktest<span style="color: #FF6BF9;">)]</span>
<code >#<span style="color: #FF6BF9;">[</span>cfg<span style="color: #FF6BF9;">(</span>ktest<span style="color: #FF6BF9;">)]</span>
<span style="color: #00B7BD;">mod</span> tests <span style="color: #FF6BF9;">{</span>
#<span style="color: #FF6BF9;">[</span>ktest<span style="color: #FF6BF9;">]</span>
<span style="color: #00B7BD;">fn it_works</span><span style="color: #FF6BF9;">() {</span>
<span style="color: #00B7BD;">assert_eq</span><span style="color: #FF6BF9;">!(</span><span style="color: #00B7BD;">true</span>, <span style="color: #00B7BD;">true</span><span style="color: #FF6BF9;">)</span>;
<span style="color: #FF6BF9;">}</span>
#<span style="color: #FF6BF9;">[</span>ktest<span style="color: #FF6BF9;">]</span>
<span style="color: #00B7BD;">fn it_works</span><span style="color: #FF6BF9;">() {</span>
<span style="color: #00B7BD;">assert_eq</span><span style="color: #FF6BF9;">!(</span><span style="color: #00B7BD;">true</span>, <span style="color: #00B7BD;">true</span><span style="color: #FF6BF9;">)</span>;
<span style="color: #FF6BF9;">}</span>
<span style="color: #FF6BF9;">}</span>
</code>
</pre>
Expand Down

0 comments on commit b7485fb

Please sign in to comment.