Skip to content

Commit

Permalink
Fixed README examples (#57)
Browse files Browse the repository at this point in the history
- Fixed OrgHeaders call to reflect multiple value return
- Changed call to Org to OrgCommon
  • Loading branch information
sanandak authored and chaseadamsio committed Oct 10, 2017
1 parent 819420f commit 0a6e7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To retrieve the headers from a =[]byte=, call =OrgHeaders= and it will return a

#+BEGIN_SRC go
input := "#+title: goorgeous\n* Some Headline\n"
out := goorgeous.OrgHeaders(input)
out, _ := goorgeous.OrgHeaders(input)
#+END_SRC

#+BEGIN_SRC go
Expand All @@ -46,7 +46,7 @@ After importing =github.com/chaseadamsio/goorgeous=, you can call =Org= with a =

#+BEGIN_SRC go
input := "#+TITLE: goorgeous\n* Some Headline\n"
out := goorgeous.Org(input)
out := goorgeous.OrgCommon([]byte(input))
#+END_SRC

=out= will be:
Expand Down

0 comments on commit 0a6e7b6

Please sign in to comment.