mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(encoding/front_matter): fix example (#2437)
This commit is contained in:
parent
f26ad9954e
commit
e2f3f58fb4
@ -31,7 +31,7 @@ export type Extract<T> = {
|
||||
* const { attrs, body, frontMatter } = extract<{ title: string }>("---\ntitle: Three dashes marks the spot\n---\n");
|
||||
* assertEquals(attrs.title, "Three dashes marks the spot");
|
||||
* assertEquals(body, "");
|
||||
* assertEquals(frontMatter, "---\ntitle: Three dashes marks the spot\n---\n");
|
||||
* assertEquals(frontMatter, "title: Three dashes marks the spot");
|
||||
* ```
|
||||
*/
|
||||
export function extract<T = unknown>(str: string): Extract<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user