Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saltukalakus committed Nov 16, 2024
1 parent cff1eb1 commit d213e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/essentials/core-concepts/crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ my_library_crate/

The `lib.rs` file is the entry point of the library crate.

```rust
```rust,noplaypen
pub fn hello() {
println!("Hello, library!");
}
Expand All @@ -66,7 +66,7 @@ rand = "0.8"

Then, you can use the crate in your code:

```rust
```rust,noplaypen
use rand::Rng;
fn main() {
Expand Down
4 changes: 2 additions & 2 deletions src/essentials/core-concepts/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ src/

In `main.rs`:

```rust
```rust,noplaypen
mod my_module;
fn main() {
Expand All @@ -67,7 +67,7 @@ fn main() {

In `my_module.rs`:

```rust
```rust,noplaypen
pub fn say_hello() {
println!("Hello from my_module!");
}
Expand Down

0 comments on commit d213e6c

Please sign in to comment.