summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lex/parse.go2
-rw-r--r--lex/write.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/lex/parse.go b/lex/parse.go
index 00a6cbd..c4214a9 100644
--- a/lex/parse.go
+++ b/lex/parse.go
@@ -10,7 +10,7 @@ import (
//optionally followed by a colon and space and the actual contents of that element.
//Special elements exist: newpage, titlepage and metasection.
//These elements trigger pdf creation instructions.
-func Parse(file io.Reader) (out Screenplay) {
+func Parse(file io.Reader) (out Document) {
f := bufio.NewReader(file)
var err error
var s string
diff --git a/lex/write.go b/lex/write.go
index b8ee6c2..47c4e8d 100644
--- a/lex/write.go
+++ b/lex/write.go
@@ -5,7 +5,7 @@ import (
"io"
)
-func Write(s Screenplay, out io.Writer) {
+func Write(s Document, out io.Writer) {
for _, line := range s {
fmt.Fprintf(out, "%s: %s\n", line.Type, line.Contents)
}