Skip to content

Commit 49bea1e

Browse files
authored
Fix data-url README
1 parent e447349 commit 49bea1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data-url/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# data-url
22

3-
![crates.io](https://img.shields.io/crates/v/url.svg)
4-
![docs.rs](https://docs.rs/data-url/)
3+
[![crates.io](https://img.shields.io/crates/v/data-url.svg)](https://crates.io/crates/data-url)
4+
[![docs.rs](https://img.shields.io/badge/docs.rs-%F0%9F%93%84-blue.svg)](https://docs.rs/data-url/)
55

66
Processing of `data:` URLs in Rust according to the Fetch Standard:
77
<https://fetch.spec.whatwg.org/#data-urls>
88
but starting from a string rather than a parsed URL to avoid extra copies.
99

1010
```rust
1111
use data_url::{DataUrl, mime};
12-
//!
12+
1313
let url = DataUrl::process("data:,Hello%20World!").unwrap();
1414
let (body, fragment) = url.decode_to_vec().unwrap();
15-
//!
15+
1616
assert_eq!(url.mime_type().type_, "text");
1717
assert_eq!(url.mime_type().subtype, "plain");
1818
assert_eq!(url.mime_type().get_parameter("charset"), Some("US-ASCII"));

0 commit comments

Comments
 (0)