Skip to content

Commit

Permalink
once more. with feeling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionous committed Dec 23, 2023
1 parent adf9707 commit c774e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func ExampleUnmarshal() {
// Write a tell document.
func ExampleMarshal() {
m := map[string]any{
"Tell:": "A yaml-like text format.",
"What It Is:": "A way of describing data...",
"What It Is Not:": "A subset of yaml.",
"Tell": "A yaml-like text format.",
"What It Is": "A way of describing data...",
"What It Is Not": "A subset of yaml.",
}
if out, e := tell.Marshal(m); e != nil {
panic(e)
Expand All @@ -90,8 +90,8 @@ func ExampleMarshal() {
}
// Output:
// Tell: "A yaml-like text format."
// What It Is Not: "A subset of yaml."
// What It Is: "A way of describing data..."
// What It Is Not: "A subset of yaml."
}

// slightly lower level usage:
Expand Down
8 changes: 4 additions & 4 deletions tellExamples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func ExampleUnmarshal() {
// Write a tell document.
func ExampleMarshal() {
m := map[string]any{
"Tell:": "A yaml-like text format.",
"What It Is:": "A way of describing data...",
"What It Is Not:": "A subset of yaml.",
"Tell": "A yaml-like text format.",
"What It Is": "A way of describing data...",
"What It Is Not": "A subset of yaml.",
}
if out, e := tell.Marshal(m); e != nil {
panic(e)
Expand All @@ -33,6 +33,6 @@ func ExampleMarshal() {
}
// Output:
// Tell: "A yaml-like text format."
// What It Is Not: "A subset of yaml."
// What It Is: "A way of describing data..."
// What It Is Not: "A subset of yaml."
}

0 comments on commit c774e1d

Please sign in to comment.