changeset 21579:0d1bd2ede0c1

doc: Document that logical negation is written with a space ("! A"). * contrib.txi: Document that logical negation is written with a space "! A".
author Rik <rik@octave.org>
date Fri, 01 Apr 2016 14:56:52 -0700
parents 683a1beee538
children ecce63c99c3f
files doc/interpreter/contrib.txi
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/contrib.txi	Fri Apr 01 14:55:13 2016 -0700
+++ b/doc/interpreter/contrib.txi	Fri Apr 01 14:56:52 2016 -0700
@@ -361,8 +361,12 @@
 @end example
 
 The Octave operator @samp{!} should be used for logical negation, rather than
-@samp{~}.  Comments should begin with the @samp{#} character, rather than
-@samp{%}.
+@samp{~}.  The negation operator is written with a space between the operator
+and its target, e.g., @code{! A}.  Comments should begin with the @samp{#}
+character, rather than @samp{%}.
+
+Any Built-In Self Tests or demos using the @code{%!test} or @code{%!demo}
+syntax should begin two lines after the @code{endfunction} keyword.
 
 @node C++ Sources
 @section C++ Sources
@@ -428,6 +432,9 @@
 more readable, even if they are not necessary.  Also, do not hesitate to
 put extra braces anywhere if it improves clarity.
 
+The negation operator is written with a space between the operator
+and its target, e.g., @code{! A}.
+
 Declare variables just before they are needed.  Use variables local to
 blocks---it helps optimization.  Don't write a multi-line variable
 declaration with a single type specification and multiple variables.  If