From c373a350aef9a7801b78bd6bfcbacc5b23d99074 Mon Sep 17 00:00:00 2001 From: Scott VanRavenswaay Date: Wed, 18 Sep 2024 03:08:43 -0500 Subject: [PATCH] Update index.md Replace the unicode n-dash (U+2013) with two ascii minus (0x2D) characters. (Probably someone's editor "helped" by converting the typed two dashes with the Unicode character. --- doc/manual/nasl/nasl-grammar/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/nasl/nasl-grammar/index.md b/doc/manual/nasl/nasl-grammar/index.md index e827260cb..616be1266 100644 --- a/doc/manual/nasl/nasl-grammar/index.md +++ b/doc/manual/nasl/nasl-grammar/index.md @@ -99,7 +99,7 @@ NASL imported some operators from C: - `++` is the pre-incrementation (`++x`) or post-incrementation (`x++`). - `++x` adds 1 to x and returns the result; `x++` adds 1 to x but returns the previous value. -- `-` is the pre-decrementation (`ā€“x`) or post-decrementation (`xā€“`). +- `--` is the pre-decrementation (`--x`) or post-decrementation (`x--`). - `+= -= *= /= %=` have the same meaning as in C, e.g., `x += y;` is equivalent to `x = x + y;` but x is evaluated only once. This is important in expressions like `a[i++] *= 2;` where the index ā€œiā€ is incremented only once. - `<<=` and `>>=` also exist; we added `>>>=`