Skip to content

Commit ec0ca3a

Browse files
Remove all usage of hoedown_buffer_puts
1 parent d0916c5 commit ec0ca3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/markdown.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ extern {
528528
fn hoedown_document_free(md: *mut hoedown_document);
529529

530530
fn hoedown_buffer_new(unit: libc::size_t) -> *mut hoedown_buffer;
531-
fn hoedown_buffer_puts(b: *mut hoedown_buffer, c: *const libc::c_char);
532531
fn hoedown_buffer_free(b: *mut hoedown_buffer);
533532
fn hoedown_buffer_put(b: *mut hoedown_buffer, c: *const u8, len: libc::size_t);
534533
}
@@ -629,7 +628,7 @@ pub fn render(w: &mut fmt::Formatter,
629628
level: libc::c_int, data: *const hoedown_renderer_data,
630629
_: libc::size_t) {
631630
// hoedown does this, we may as well too
632-
unsafe { hoedown_buffer_puts(ob, "\n\0".as_ptr() as *const _); }
631+
unsafe { hoedown_buffer_put(ob, "\n".as_ptr(), 1); }
633632

634633
// Extract the text provided
635634
let s = if text.is_null() {

0 commit comments

Comments
 (0)