Skip to content

Commit

Permalink
Fix example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 14, 2024
1 parent 8a42977 commit cb2675f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn main() -> Result<(), NtfyError> {
let payload = Payload::new("mytopic")
.message("Hello, **World**!") // Add optional message
.title("Alert") // Add optiona title
.tags(vec!["warning".into()]) // Add optional tags
.tags(["warning"]) // Add optional tags
.priority(Priority::High) // Edit priority
.actions([action]) // Add optional actions
.click(Url::parse("https://example.com")?) // Add optional clickable url
Expand Down

0 comments on commit cb2675f

Please sign in to comment.