Sfoglia il codice sorgente

Remove a useless comment

jD91mZM2 6 anni fa
parent
commit
0a57c617c7
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      src/time/src/strftime.rs

+ 0 - 5
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),