Skip to content

Commit 23b9fdd

Browse files
committed
🔨 Fix README.md header levels
1 parent e0d020d commit 23b9fdd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn main() {
4343
}
4444
```
4545

46-
# Simple Example
46+
## Simple Example
4747

4848
```rust
4949
use enum_display::EnumDisplay;
@@ -60,7 +60,7 @@ assert_eq!(Color::Green.to_string(), "Green");
6060
assert_eq!(Color::Blue.to_string(), "Blue");
6161
```
6262

63-
# Example With Custom Case Transform
63+
## Example With Custom Case Transform
6464

6565
Any case from [convert_case](https://docs.rs/convert_case/latest/convert_case/) is supported.
6666

@@ -76,11 +76,11 @@ enum Message {
7676
assert_eq!(Message::HelloGreeting { name: "Alice".to_string() }.to_string(), "hello-greeting");
7777
```
7878

79-
# Custom Variant Formatting with `#[display]`
79+
## Custom Variant Formatting with `#[display]`
8080

8181
The `#[display]` attribute allows you to customize how individual enum variants are formatted. This attribute accepts a format string that follows Rust's standard formatting syntax.
8282

83-
## Basic Usage
83+
### Basic Usage
8484

8585
```rust
8686
use enum_display::EnumDisplay;
@@ -100,7 +100,7 @@ assert_eq!(Status::Ready.to_string(), "System is ready");
100100
assert_eq!(Status::Success.to_string(), "Success: Operation completed");
101101
```
102102

103-
## Field Access Patterns
103+
### Field Access Patterns
104104

105105
The `#[display]` attribute provides different ways to access variant data:
106106

0 commit comments

Comments
 (0)