From: John Darrington <john@darrington.wattle.id.au>
Date: Tue, 16 Jun 2015 15:51:25 +0000 (+0200)
Subject: Correct and expand comment to barchart_create
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0b72d8777ae89902dcf069f850fe557d5323b5;p=pspp

Correct and expand comment to barchart_create
---

diff --git a/src/output/charts/barchart.c b/src/output/charts/barchart.c
index 5d35719a86..07a39e818f 100644
--- a/src/output/charts/barchart.c
+++ b/src/output/charts/barchart.c
@@ -75,7 +75,14 @@ compare_freq_2level_ptr_3way (const void *a_, const void *b_, const void *bc_)
 
 
 /* Creates and returns a chart that will render a barchart with
-   the given TITLE and the N_BARS described in CATS. */
+   the given TITLE and the N_CATS described in CATS. 
+
+   VAR is an array containing the categorical variables, and N_VAR 
+   the number of them. N_VAR must be exactly 1 or 2.
+
+   CATS are the counts of the values of those variables. N_CATS is the
+   number of distinct values.
+*/
 struct chart_item *
 barchart_create (const struct variable **var, int n_vars,
 		 const char *ylabel,