Fix docstring and error-reporting in #'PARSE-PROTO-IMPORT
authorAlejandro R Sedeño <asedeno@google.com>
Tue, 4 Dec 2012 16:13:53 +0000 (11:13 -0500)
committerAlejandro R Sedeño <asedeno@google.com>
Tue, 4 Dec 2012 16:13:53 +0000 (11:13 -0500)
parser.lisp

index 712418d..620c487 100644 (file)
 
 (defun parse-proto-import (stream schema &optional (terminator #\;))
   "Parse a Protobufs import line from 'stream'.
-   Updates the 'protobuf-schema' object to use the package."
+   Updates the 'protobuf-schema' object to use the import."
   (check-type schema protobuf-schema)
   (let ((import (prog1 (parse-string stream)
-                  (expect-char stream terminator () "package")
+                  (expect-char stream terminator () "import")
                   (maybe-skip-comments stream))))
     (process-imports schema (list import))
     (setf (proto-imports schema) (nconc (proto-imports schema) (list import)))))