Skip to content

Commit edb98e7

Browse files
committed
---
yaml --- r: 8122 b: refs/heads/snap-stage3 c: 0c13ee2 h: refs/heads/master v: v3
1 parent 18c3e30 commit edb98e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1aa23947a630fbc5678eeabeca5a653a37871bdd
4+
refs/heads/snap-stage3: 0c13ee22ade792f3662641a4ab8470ecfe33c236
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/libcore/extfmt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,12 @@ mod rt {
321321
// For strings, precision is the maximum characters
322322
// displayed
323323

324-
// FIXME: substr works on bytes, not chars!
325324
let unpadded =
326325
alt cv.precision {
327326
count_implied { s }
328327
count_is(max) {
329328
if max as uint < str::char_len(s) {
330-
str::unsafe::slice_bytes(s, 0u, max as uint)
329+
str::substr(s, 0u, max as uint)
331330
} else { s }
332331
}
333332
};

0 commit comments

Comments
 (0)