[Boost-bugs] [Boost C++ Libraries] #12074: Incorrect example in documentation for boost::gregorian::date::day_of_week()

Subject: [Boost-bugs] [Boost C++ Libraries] #12074: Incorrect example in documentation for boost::gregorian::date::day_of_week()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-18 12:29:13


#12074: Incorrect example in documentation for
boost::gregorian::date::day_of_week()
------------------------------+---------------------------
 Reporter: micol972@… | Owner: matias
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
  Version: Boost 1.60.0 | Severity: Cosmetic
 Keywords: |
------------------------------+---------------------------
 The documentation
 (http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_class)
 offers this example:

 {{{
     greg_day_of_week day_of_week() const
 }}}
   Get the day of the week (Sunday, Monday, etc.)
 {{{
 date d(2002,Jan,10);
 d.day(); // --> Thursday
 }}}

 I would expect the last line to say d.day_of_week() instead of d.day().

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12074>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC