sprinter: clarify separator documentation

For text printers, the separator is a syntactic element.
This commit is contained in:
Jani Nikula 2012-12-17 00:05:09 +02:00 committed by David Bremner
parent 480f44fbe4
commit 1358f93a9f

View file

@ -42,10 +42,11 @@ typedef struct sprinter {
*/ */
void (*map_key) (struct sprinter *, const char *); void (*map_key) (struct sprinter *, const char *);
/* Insert a separator (usually extra whitespace) for improved /* Insert a separator (usually extra whitespace). For the text
* readability without affecting the abstract syntax of the * printers, this is a syntactic separator. For the structured
* structure being printed. * printers, this is for improved readability without affecting
* For JSON, this could simply be a line break. * the abstract syntax of the structure being printed. For JSON,
* this could simply be a line break.
*/ */
void (*separator) (struct sprinter *); void (*separator) (struct sprinter *);