From 4eeac5ce5a0ba2c64595d227f1f69a867863ad33 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 24 May 2011 21:41:11 +0000 Subject: Document that spec2cp never returns 0. --- mandoc.3 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mandoc.3') diff --git a/mandoc.3 b/mandoc.3 index b2e86d9c..d40b33ed 100644 --- a/mandoc.3 +++ b/mandoc.3 @@ -248,9 +248,7 @@ a Unicode codepoint. Returns \e0 (the nil character) if the input sequence is malformed. .It Fn mchars_spec2cp Convert a special character into a valid Unicode codepoint. -Returns \-1 on failure and 0 if no code-point exists (if this occurs, -the caller should fall back to -.Fn mchars_spec2str ) . +Returns \-1 on failure or a non-zero Unicode codepoint on success. .It Fn mchars_spec2str Convert a special character into an ASCII string. Returns NULL on failure. -- cgit