File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 1aa23947a630fbc5678eeabeca5a653a37871bdd
4
+ refs/heads/snap-stage3: 0c13ee22ade792f3662641a4ab8470ecfe33c236
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -321,13 +321,12 @@ mod rt {
321
321
// For strings, precision is the maximum characters
322
322
// displayed
323
323
324
- // FIXME: substr works on bytes, not chars!
325
324
let unpadded =
326
325
alt cv. precision {
327
326
count_implied { s }
328
327
count_is( max) {
329
328
if max as uint < str:: char_len ( s ) {
330
- str:: unsafe :: slice_bytes ( s, 0 u, max as uint )
329
+ str:: substr ( s, 0 u, max as uint )
331
330
} else { s }
332
331
}
333
332
} ;
You can’t perform that action at this time.
0 commit comments