This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Fix typo in style guide


This almost qualifies as obvious.  The style rule is currently
self-contradictory, so it could mean either thing, but I've checked a
few package specs, and the patch below seems to reflect the intended
meaning.

Okay for mainline?

2011-01-18  Florian Weimer  <fw@deneb.enyo.de>

	* gnat-style.texi (Lexical Elements): Fix typo.

Index: gnat-style.texi
===================================================================
--- gnat-style.texi	(revision 168958)
+++ gnat-style.texi	(working copy)
@@ -299,7 +299,7 @@
 Descriptions of what subprograms do go with the specification.
 
 @item
-Comments describing a subprogram spec should specifically mention the
+Comments describing a subprogram spec should not specifically mention the
 formal argument names.  General rule: write a comment that does not
 depend on the names of things.  The names are supplementary, not
 sufficient, as comments.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]