Skip to content

Commit

Permalink
Fixed highlighting and links
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCipherCoder committed Aug 31, 2024
1 parent be7fea6 commit e859709
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ let light_status = LightStatus::On { color: String::from("red") };
```

In this example, setting a variable to the `On` variant of `LightStatus`
requires also setting the value of `color`. You can check out more such examples
of using enum
[here](https://doc.rust-lang.org/rust-by-example/custom_types/enum.html).
requires also setting the value of `color`. You can check out more examples of
using enums in Rust by visiting
[this Rust by Example page on enums](https://doc.rust-lang.org/rust-by-example/custom_types/enum.html).

#### Match statements

Expand Down Expand Up @@ -414,7 +414,7 @@ location, typically in `lib.rs`. Each file must be registered this way.
pub mod instruction;
```

Additionally, use the pub keyword to make declarations available for `use`
Additionally, use the `pub` keyword to make declarations available for `use`
statements in other files.

```rust
Expand All @@ -430,7 +430,7 @@ cover the remaining implementation.
### 1. Entry point

Using [Solana Playground](https://beta.solpg.io/), clear everything in the
current lib.rs file if it's still populated from the previous lesson. Then,
current `lib.rs` file if it's still populated from the previous lesson. Then,
bring in the following crates and define the program's entry point using the
entrypoint macro.

Expand Down

0 comments on commit e859709

Please sign in to comment.