Re: [PATCH] docs: fix two "maybe be" duplications in program comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/18/2015 03:50 PM, Benno Schulenberg wrote: 
>  	if (!tb->is_term)
>  		return 0;
>  
> -	/* reduce columns with extreme fields
> -	 */
> +	/* reduce columns with extreme fields */
>  	if (width > tb->termwidth && extremes) {
>  		DBG(TAB, ul_debugobj(tb, "   reduce width (extreme columns)"));
>

This is a common practice to add some delimiting space between a
comment and the code; just as the the empty line above it does.


> @@ -710,7 +708,7 @@ static int recount_widths(struct libscols_table *tb, struct libscols_buffer *buf
>  		if (width < tb->termwidth && scols_table_is_maxout(tb)) {
>  			DBG(TAB, ul_debugobj(tb, "   enlarge width (max-out)"));
>  
> -			/* try enlarge all columns */
> +			/* try enlarging all columns */
>  			while (width < tb->termwidth) {
>  				scols_reset_iter(&itr, SCOLS_ITER_FORWARD);
>  				while (scols_table_next_column(tb, &itr, &cl) == 0) {
> @@ -735,7 +733,7 @@ static int recount_widths(struct libscols_table *tb, struct libscols_buffer *buf
>  	}
>  
>  	/* bad, we have to reduce output width, this is done in two steps:
> -	 * 1/ reduce columns with a relative width and with truncate flag
> +	 * 1) reduce columns with a relative width and with truncate flag
>  	 * 2) reduce columns with a relative width without truncate flag
>  	 */
>  	trunc_only = 1;
> 
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux