1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 22:32:12 +02:00

Mikael Magnusson: 25856: typo fixes.

This commit is contained in:
Clint Adams 2008-10-12 11:01:17 +00:00
parent ee3799ebea
commit 89b7eda334
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,7 @@
2008-10-12 Clint Adams <clint@zsh.org> 2008-10-12 Clint Adams <clint@zsh.org>
* Mikael Magnusson: 25856: Etc/completion-style-guide: typo fixes.
* Mikael Magnusson: 25855: Etc/zsh-development-guide: typo fixes. * Mikael Magnusson: 25855: Etc/zsh-development-guide: typo fixes.
2008-10-11 Peter Stephenson <p.w.stephenson@ntlworld.com> 2008-10-11 Peter Stephenson <p.w.stephenson@ntlworld.com>

View file

@ -8,7 +8,7 @@ to be distributed as part of zsh to maintain a level of consistency.
Coding style: Coding style:
* Use two spaces for indentation and four for continuation lines except * Use two spaces for indentation and four for continuation lines except
where there are many continutation lines such as `_arguments' or where there are many continuation lines such as `_arguments' or
`_values' specs. Lines tend to be longer than in C code so less `_values' specs. Lines tend to be longer than in C code so less
indentation makes sense. indentation makes sense.
@ -46,7 +46,7 @@ where default values or units are indicated. Do not put them in
per-match descriptions; they are better placed in the group per-match descriptions; they are better placed in the group
descriptions. Put the units in parentheses after the description. So descriptions. Put the units in parentheses after the description. So
for example, do not use: for example, do not use:
'--timeout[specifiy connection timeout in milliseconds]:timeout' '--timeout[specify connection timeout in milliseconds]:timeout'
but use: but use:
'--timeout[specify connection timeout]:timeout (ms)' '--timeout[specify connection timeout]:timeout (ms)'
@ -63,7 +63,7 @@ tells _wanted where to put options specifying the `directory' description.
Where two matches have identical meaning, give them the same Where two matches have identical meaning, give them the same
description so that the completion system can group them together. description so that the completion system can group them together.
Conventionally a brace exapansion of this form is used: Conventionally a brace expansion of this form is used:
'(--context,-C)'{--context=,-C-}'[specify lines of context]:lines' '(--context,-C)'{--context=,-C-}'[specify lines of context]:lines'
You won't need the exclusion list if the option can be specified You won't need the exclusion list if the option can be specified
multiple times. It can also be useful to use the same description for multiple times. It can also be useful to use the same description for