Skip to content

Commit

Permalink
Update 2024-01-27-lesson2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stream-rahul committed Jan 26, 2025
1 parent eb46f3f commit 30cf7ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _posts/2024-01-27-lesson2.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permalink: /lesson2/
<details>
<summary>🔍 View PWD Implementation in C (with Internal Details)</summary>

{% raw %}
```c
#include <windows.h>
#include <stdio.h>
Expand Down Expand Up @@ -94,11 +95,13 @@ int _tmain(int argc, TCHAR* argv[]) {
// concluding process cycle efficiently.
}
```
{% endraw %}
</details>
## Rust Implementation
## Rust Implementation
{% raw %}
```rust
use std::env; // (1) `std::env` acts as a bridge between Rust
// and the underlying OS, using syscalls
Expand Down Expand Up @@ -175,6 +178,7 @@ fn main() {
// ensuring atomic writes.
}
```
{% endraw %}

### Exercise

Expand Down

0 comments on commit 30cf7ae

Please sign in to comment.