summaryrefslogtreecommitdiff
path: root/Documentation/internals
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2018-11-15 14:55:35 +0300
committerBen Pfaff <blp@ovn.org>2018-11-15 06:29:35 -0800
commit6e367a2095f1f61d46d55921aae17dced44d78d0 (patch)
tree3b306c3e18714dd067da535f83f902a43946a7b5 /Documentation/internals
parent039cf7d4d9b5e9cdf87b2732511f39cd55477bb6 (diff)
downloadopenvswitch-6e367a2095f1f61d46d55921aae17dced44d78d0.tar.gz
coding-style: Remove redundant symbols from the examples.
Some backslashes was added while converting from .md to .rst. These symbols are printable in both pdf and html docs and should be removed. CC: Stephen Finucane <stephen@that.guru> Fixes: d124a408a4bc ("doc: Convert CodingStyle to rST") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'Documentation/internals')
-rw-r--r--Documentation/internals/contributing/coding-style.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/internals/contributing/coding-style.rst b/Documentation/internals/contributing/coding-style.rst
index 3ce104994..28cbec28b 100644
--- a/Documentation/internals/contributing/coding-style.rst
+++ b/Documentation/internals/contributing/coding-style.rst
@@ -530,7 +530,7 @@ Do not put any white space around postfix, prefix, or grouping operators:
Exception 1: Put a space after (but not before) the "sizeof" keyword.
Exception 2: Put a space between the () used in a cast and the expression whose
-type is cast: ``(void \*) 0``.
+type is cast: ``(void *) 0``.
Break long lines before the ternary operators ? and :, rather than after
them, e.g.
@@ -585,7 +585,7 @@ Try to avoid casts. Don't cast the return value of malloc().
The "sizeof" operator is unique among C operators in that it accepts two very
different kinds of operands: an expression or a type. In general, prefer to
-specify an expression, e.g. ``int *x = xmalloc(sizeof *\ x);``. When the
+specify an expression, e.g. ``int *x = xmalloc(sizeof *x);``. When the
operand of sizeof is an expression, there is no need to parenthesize that
operand, and please don't.