diff options
| author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-04-10 21:02:29 +0200 |
|---|---|---|
| committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-04-10 21:02:29 +0200 |
| commit | b410f3f7aeea95ba5362bb5dddbf5e66183adc40 (patch) | |
| tree | aa24502d75a77b04be47da65cb60dfc6e23ddb79 /src/librustdoc/html/render | |
| parent | a73288371e3fa0a610fbc11e7e8418017bdfde42 (diff) | |
| download | rust-b410f3f7aeea95ba5362bb5dddbf5e66183adc40.tar.gz rust-b410f3f7aeea95ba5362bb5dddbf5e66183adc40.zip | |
Fix typos in librustdoc
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 6bce5734004..9a968e48b27 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -1796,10 +1796,11 @@ fn render_struct( } match ty { None => { - let where_diplayed = g.map(|g| print_where_clause_and_check(w, g, cx)).unwrap_or(false); + let where_displayed = + g.map(|g| print_where_clause_and_check(w, g, cx)).unwrap_or(false); // If there wasn't a `where` clause, we add a whitespace. - if !where_diplayed { + if !where_displayed { w.write_str(" {"); } else { w.write_str("{"); |
