All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sletten <david.paul.sletten@gmail.com>
To: mtk.manpages@gmail.com, alx.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Subject: Error in 'man operator'
Date: Fri, 27 Aug 2021 14:11:32 -0400	[thread overview]
Message-ID: <4cc4d818-58ad-529e-dd25-df3cb0fae66d@gmail.com> (raw)

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


             reply	other threads:[~2021-08-27 18:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 18:11 David Sletten [this message]
2021-08-27 23:39 ` Error in 'man operator' 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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4cc4d818-58ad-529e-dd25-df3cb0fae66d@gmail.com \
    --to=david.paul.sletten@gmail.com \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.