aboutsummaryrefslogtreecommitdiffstats
path: root/man3/scanf.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/scanf.3')
-rw-r--r--man3/scanf.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/scanf.3 b/man3/scanf.3
index 74b98bfd91..be1ccedcd3 100644
--- a/man3/scanf.3
+++ b/man3/scanf.3
@@ -300,10 +300,10 @@ circumflex
To include a close bracket in the set, make it the first character after
the open bracket or the circumflex; any other position will end the set.
The hyphen character
-.B -
+.B \-
is also special; when placed between two other characters, it adds all
intervening characters to the set. To include a hyphen, make it the last
-character before the final close bracket. For instance, `[^]0-9-]' means
+character before the final close bracket. For instance, `[^]0\-9-\]' means
the set `everything except close bracket, zero through nine, and hyphen'.
The string ends with the appearance of a character not in the (or, with a
circumflex, in) set or when the field width runs out.