diff options
| author | Zack Corr <zack@z0w0.me> | 2013-03-14 16:39:36 +1000 |
|---|---|---|
| committer | Zack Corr <zack@z0w0.me> | 2013-03-14 16:43:17 +1000 |
| commit | 4f238503d8730486fd9c72c71f1043a2f925299d (patch) | |
| tree | 1e3539e7d09b52cf6eca714f7f77986c79e83fd7 /src/libsyntax/print | |
| parent | 58f248d9234f2a6b10b1537e4075d303ed60b605 (diff) | |
| download | rust-4f238503d8730486fd9c72c71f1043a2f925299d.tar.gz rust-4f238503d8730486fd9c72c71f1043a2f925299d.zip | |
rustdoc: Document explicit self in methods. Closes #5254
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 724e61daea7..f74b8eb42b8 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -181,10 +181,11 @@ pub fn path_to_str(&&p: @ast::path, intr: @ident_interner) -> ~str { } pub fn fun_to_str(decl: &ast::fn_decl, name: ast::ident, + opt_self_ty: Option<ast::self_ty_>, generics: &ast::Generics, intr: @ident_interner) -> ~str { do io::with_str_writer |wr| { let s = rust_printer(wr, intr); - print_fn(s, decl, None, name, generics, None, ast::inherited); + print_fn(s, decl, None, name, generics, opt_self_ty, ast::inherited); end(s); // Close the head box end(s); // Close the outer box eof(s.s); |
