git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Typofixes outside documentation area

From
Thomas Rast <trast@student.ethz.ch>
Date
Feb 4, 2010, 10:59 UTC
Message-ID
<201002041159.51543.trast@student.ethz.ch>
In-Reply-To
<7v636dr2hy.fsf@alter.siamese.dyndns.org>
On Thursday 04 February 2010 06:31:05 Junio C Hamano wrote:
Show 13 quoted lines
> diff --git a/levenshtein.h b/levenshtein.h
> index 0173abe..4105bf3 100644
> --- a/levenshtein.h
> +++ b/levenshtein.h
> @@ -2,7 +2,7 @@
>  #define LEVENSHTEIN_H
>  
>  int levenshtein(const char *string1, const char *string2,
> -	int swap_penalty, int substition_penalty,
> +	int swap_penalty, int substitution_penalty,
>  	int insertion_penalty, int deletion_penalty);
>  
>  #endif
To save others the trouble of looking it up, too:

This does change the name of the parameter, but it's only the declaration. The actual definition of the function starts with

	int levenshtein(const char *string1, const char *string2,
			int w, int s, int a, int d)
	{

so it doesn't need a similar rename, and no uses of the parameter are affected.

AFAICS all other changes are only in comments or strings and should be safe.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Peter Krefting
Message 3 of 3 in “Typofixes outside documentation area”
  1. Typofixes outside documentation areaJunio C Hamano, Feb 4, 2010
  2. Peter KreftingFeb 4, 2010
  3. Thomas RastFeb 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.