public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Error in 'man operator'
@ 2021-08-27 18:11 David Sletten
  2021-08-27 23:39 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 9+ messages in thread
From: David Sletten @ 2021-08-27 18:11 UTC (permalink / raw)
  To: mtk.manpages, alx.manpages; +Cc: linux-man

Hi,

I've run across what I believe is a minor error in the man page for C 
operators (https://man7.org/linux/man-pages/man7/operator.7.html ).

The man page lists casting in the 2nd row of the table:

        Operator Associativity   Notes
        () [] -> . ++ --                    left to right [1]
        ! ~ ++ -- + - (type) * & sizeof     right to left [2]
        * / %                               left to right

However, in "C A Reference Manual" (5th ed.), table 7-3 on pg. 205 shows 
that all of the operators in row 2 above have a precedence of 15 except 
for casts which have a precedence of 14. Consequently, the man page 
should display casts as the (new) 3rd row in the table above.

Thanks for your effort in maintaining this documentation.

-- 

Have all good days!
David Sletten


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-28 10:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-27 18:11 Error in 'man operator' David Sletten
2021-08-27 23:39 ` Alejandro Colomar (man-pages)
2021-08-28  0:01   ` Alejandro Colomar (man-pages)
2021-08-28  0:08     ` David Sletten
2021-08-28 10:56       ` Alejandro Colomar (man-pages)
2021-08-28  0:17     ` Alejandro Colomar (man-pages)
2021-08-28  0:20       ` David Sletten
2021-08-28  5:43       ` Jakub Wilk
2021-08-28 10:50         ` Alejandro Colomar (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox