Skip to content

Commit 548c181

Browse files
committed
---
yaml --- r: 2695 b: refs/heads/master c: 01c13a3 h: refs/heads/master i: 2693: 9e7ab9e 2691: bf318bc 2687: ce531ef v: v3
1 parent 2becf6d commit 548c181

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fc8b9671bbcfbe91857220538a1447fab4988dfc
2+
refs/heads/master: 01c13a3878d31b15cf6e5373d01604a706a71211

trunk/src/lib/io.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ type writer =
356356
// write_str will continue to do utf-8 output only. an alternative
357357
// function will be provided for general encoded string output
358358
fn write_str(str s);
359+
fn write_line(str s);
359360
fn write_char(char ch);
360361
fn write_int(int n);
361362
fn write_uint(uint n);
@@ -392,6 +393,10 @@ state obj new_writer(buf_writer out) {
392393
fn write_str(str s) {
393394
out.write(str::bytes(s));
394395
}
396+
fn write_line(str s) {
397+
out.write(str::bytes(s));
398+
out.write(str::bytes("\n"));
399+
}
395400
fn write_char(char ch) {
396401
// FIXME needlessly consy
397402
out.write(str::bytes(str::from_char(ch)));

0 commit comments

Comments
 (0)