diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-30 16:55:20 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-03 09:32:35 -0800 |
| commit | f9a32cdabc1680b89bd7b579dc1e3f8f18c28257 (patch) | |
| tree | eb30082c0b18bd9510a805e9d416d69242652d3a /src/libsyntax | |
| parent | 2a7c5e0b724d8318a7e7762e483c225e8a7420a1 (diff) | |
| download | rust-f9a32cdabc1680b89bd7b579dc1e3f8f18c28257.tar.gz rust-f9a32cdabc1680b89bd7b579dc1e3f8f18c28257.zip | |
std: Fixing all documentation
* Stop referencing io_error * Start changing "Failure" sections to "Error" sections * Update all doc examples to work.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 17b0b7b9c38..f0ef5014ca8 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -2059,21 +2059,17 @@ pub fn print_generics(s: &mut State, } else { let idx = idx - generics.lifetimes.len(); let param = generics.ty_params.get(idx); -<<<<<<< HEAD - print_ident(s, param.ident); - print_bounds(s, ¶m.bounds, false); + if_ok!(print_ident(s, param.ident)); + if_ok!(print_bounds(s, ¶m.bounds, false)); match param.default { Some(default) => { - space(&mut s.s); - word_space(s, "="); - print_type(s, default); + if_ok!(space(&mut s.s)); + if_ok!(word_space(s, "=")); + if_ok!(print_type(s, default)); } _ => {} } -======= - if_ok!(print_ident(s, param.ident)); - print_bounds(s, ¶m.bounds, false) ->>>>>>> syntax: Remove io_error usage + Ok(()) } } |
