mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
add NanoDuration.to_format() (#935)
* lib/std/time: avoid switch in DateTime.compare_to() * lib/std/time: add NanoDuration.to_format() * std/lib: fix #934
This commit is contained in:
@@ -141,7 +141,7 @@ fn void! Formatter.out_substr(&self, String str) @private
|
||||
usz l = conv::utf8_codepoints(str);
|
||||
uint prec = self.prec;
|
||||
if (self.flags.precision && l < prec) l = prec;
|
||||
self.right_adjust(' ')!;
|
||||
self.right_adjust(l)!;
|
||||
usz index = 0;
|
||||
usz chars = str.len;
|
||||
char* ptr = str.ptr;
|
||||
|
||||
Reference in New Issue
Block a user