093f103d011a — Linus Bj√∂rnstam 4 years ago
corrected error in code example
1 files changed, 4 insertions(+), 4 deletions(-)

M README.md
M README.md +4 -4
@@ 5,7 5,7 @@ The delimiter-separated values format is
 # Documentation
 
     (import (dsv))
-    (define file (open-input-file "csv.csv")
+    (define file (open-input-file "csv.csv"))
     
     ;; These are all the available options for the procedures in this library.
     ;; All options below are the standard ones, and do not have to be provided.

          
@@ 14,7 14,7 @@ The delimiter-separated values format is
     (define reader (make-dsv-reader file #:delimiter #\, #:newline 'lf #:escape #\"))
     
     ;; reader is now a thunk that returns a vector of dsv cells:
-    (reader) ;; => #("my" "delimited" "data")
+    (reader) ;; => (#("my" "delimited" "data"))
     
     ;; When there is no more data to be read #<eof> is returned.
     (reader) ;; => #<eof>

          
@@ 22,9 22,9 @@ The delimiter-separated values format is
     
     ;; There is also a higher level interface for exhausting data:
     
-    (dsv-file->list "csv.csv") ;; => #("my" "delimited" "data")
+    (dsv-file->list "csv.csv") ;; => (#("my" "delimited" "data"))
     
-    (call-with-input-file "csv.csv" dsv->list) ;; => #("my" "delimited" "data")
+    (call-with-input-file "csv.csv" dsv->list) ;; => (#("my" "delimited" "data"))
     
     ;; Both the above procedures (dsv-file->list and dsv->list) take an 
     ;; optional keyword spec as shown for make-dsv-reader