From 6e367a2095f1f61d46d55921aae17dced44d78d0 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 15 Nov 2018 14:55:35 +0300 Subject: 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 Fixes: d124a408a4bc ("doc: Convert CodingStyle to rST") Signed-off-by: Ilya Maximets Signed-off-by: Ben Pfaff --- Documentation/internals/contributing/coding-style.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Documentation/internals') 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. -- cgit v1.2.1