summaryrefslogtreecommitdiff
path: root/doc/rst/legacy/nss_developer_tutorial/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/rst/legacy/nss_developer_tutorial/index.rst')
-rw-r--r--doc/rst/legacy/nss_developer_tutorial/index.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/rst/legacy/nss_developer_tutorial/index.rst b/doc/rst/legacy/nss_developer_tutorial/index.rst
index 22252997b..a891d968d 100644
--- a/doc/rst/legacy/nss_developer_tutorial/index.rst
+++ b/doc/rst/legacy/nss_developer_tutorial/index.rst
@@ -25,7 +25,7 @@ NSS Developer Tutorial
**Curly braces**: both of the following styles are allowed:
- .. code:: brush:
+ .. code::
if (condition) {
action1();
@@ -35,7 +35,7 @@ NSS Developer Tutorial
Or:
- .. code:: brush:
+ .. code::
if (condition)
{
@@ -52,7 +52,7 @@ NSS Developer Tutorial
When a block of code consists of a single statement, NSS doesn’t require curly braces, so both of
these examples are fine:
- .. code:: brush:
+ .. code::
if (condition) {
action();
@@ -60,7 +60,7 @@ NSS Developer Tutorial
Or:
- .. code:: brush:
+ .. code::
if (condition)
action();
@@ -69,7 +69,7 @@ NSS Developer Tutorial
**Multiple-line comments** should be formatted as follows:
- .. code:: brush:
+ .. code::
/*
* Line1
@@ -78,7 +78,7 @@ NSS Developer Tutorial
or
- .. code:: brush:
+ .. code::
/*
** Line 1
@@ -87,7 +87,7 @@ NSS Developer Tutorial
The following styles are also common, because they conserve vertical space:
- .. code:: brush:
+ .. code::
/* Line1
* Line2
@@ -95,7 +95,7 @@ NSS Developer Tutorial
or
- .. code:: brush:
+ .. code::
/* Line1
** Line2
@@ -103,7 +103,7 @@ NSS Developer Tutorial
or
- .. code:: brush:
+ .. code::
/* Line1
* Line2 */
@@ -129,7 +129,7 @@ NSS Developer Tutorial
A data buffer is usually represented as:
- .. code:: brush:
+ .. code:: c
unsigned char *data;
unsigned int len;