From 0a57c617c75390c2ae692cc651bb5f5591857dd6 Mon Sep 17 00:00:00 2001 From: jD91mZM2 <me@krake.one> Date: Wed, 18 Jul 2018 08:07:00 +0200 Subject: [PATCH] Remove a useless comment --- src/time/src/strftime.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/time/src/strftime.rs b/src/time/src/strftime.rs index 47600740..9ffedc19 100644 --- a/src/time/src/strftime.rs +++ b/src/time/src/strftime.rs @@ -124,11 +124,6 @@ pub unsafe fn strftime<W: Write>( b'S' => w!("{:02}", (*t).tm_sec), b'T' => w!(recurse "%H:%M:%S"), b'u' => w!("{}", ((*t).tm_wday + 7 - 1) % 7 + 1), - // I'm kinda confused. This is the musl code. For me this returns - // week 28 even though it's week 29. In fact, how *would* this even - // work if it's restricted by tm_yday and tm_wday (see the man - // page), considering years can start at different days of the - // week??? b'U' => w!("{}", ((*t).tm_yday + 7 - (*t).tm_wday) / 7), b'w' => w!("{}", (*t).tm_wday), b'W' => w!("{}", ((*t).tm_yday + 7 - ((*t).tm_wday + 6) % 7) / 7), -- GitLab