=hco,str small cleanups

This commit is contained in:
Johannes Rudolph 2014-06-11 09:26:07 +02:00
parent 8511a3974d
commit 762f32dfeb
3 changed files with 3 additions and 4 deletions

View file

@ -13,7 +13,8 @@ private[parser] trait AcceptHeader { this: Parser with CommonRules with CommonAc
// http://tools.ietf.org/html/rfc7231#section-5.3.2
def accept = rule {
zeroOrMore(`media-range-decl`).separatedBy(listSep) ~ EOI ~> (Accept(_: _*))
zeroOrMore(`media-range-decl`).separatedBy(listSep) ~ EOI ~> (Accept(_))
}
def `media-range-decl` = rule {

View file

@ -25,7 +25,7 @@ final case class DateTime private (year: Int, // the year
def weekdayStr: String = DateTime.weekday(weekday)
/**
* The day of the month as a 3 letter abbreviation:
* The month as a 3 letter abbreviation:
* `Jan`, `Feb`, `Mar`, `Apr`, `May`, `Jun`, `Jul`, `Aug`, `Sep`, `Oct`, `Nov` or `Dec`
*/
def monthStr: String = DateTime.month(month - 1)