Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andretcarpizo committed Dec 21, 2023
1 parent 0f9d974 commit 4dc102b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#`cargo make release` to release the current version
[env]
VERSION = "0.3.4"
VERSION = "0.3.5"

[tasks.format]
install_crate = "rustfmt"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# murmur

[![GitHub](https://img.shields.io/badge/github-murmur-blue.svg)](https://github.com/andretcarpizo/murmur)
[![Crates.io](https://img.shields.io/crates/v/murmur.svg)](https://crates.io/crates/murmur)
[![Documentation](https://docs.rs/murmur/badge.svg)](https://docs.rs/murmur)
Expand All @@ -8,6 +9,7 @@
This library provides a simple and flexible way to format colored messages with optional `NerdFonts` or `Unicode` icons.

Table of Contents

1. [Usage](#usage)
2. [`IconKind` Variants](#iconkind-variants)
3. [`Whisper` Methods](#whisper-methods)
Expand All @@ -25,7 +27,7 @@ This library provides a simple and flexible way to format colored messages with

## `IconKind` Variants

The `IconKind` enum variants map to a specific icon, each icon has a default color.
The `IconKind` Enum variants map to a specific icon, each icon has a default color.
Casing conforms to [Rust API Guidelines](https:rust-lang.github.ioapi-guidelinesnaming.html).

- `NfFaTimes`
Expand All @@ -40,9 +42,8 @@ This library provides a simple and flexible way to format colored messages with
- `UnicodeGear`
- `UnicodeWarningSign`
- `UnicodeBug`


For a full list of the currently supported icons, see the `IconKind` enum.
For a full list of the currently supported icons, see the `IconKind` Enum.

```rust
use murmur::{Whisper, IconKind};
Expand All @@ -58,6 +59,7 @@ Whisper::new()
```

You must have [NerdFonts](https:www.nerdfonts.com) installed to use the `Nf` variants.

- [Nerdfonts GitHub](https:github.comryanoasisnerd-fonts?tab=readme-ov-files)
- [NerdFonts cheat-sheet](https:www.nerdfonts.comcheat-sheet)

Expand Down Expand Up @@ -101,7 +103,7 @@ Whisper::new()
}
```

output:
Output:

``` text
1 message without icon
Expand All @@ -127,7 +129,7 @@ Whisper::new()

## Handling Errors with Default Methods

The `whisper` method returns `-> Result<(), WhisperError>`
The `whisper` method returns `-> Result<(), WhisperError>`

```rust
use murmur::{Whisper, IconKind, WhisperError};
Expand Down Expand Up @@ -287,5 +289,3 @@ impl From<WhisperError> for CustomError {
Ok(())
}
```


0 comments on commit 4dc102b

Please sign in to comment.