File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2019,7 +2019,7 @@ impl Variant {
2019
2019
2020
2020
#[ derive( Clone , Debug ) ]
2021
2021
pub ( crate ) struct Discriminant {
2022
- // In the case of cross crate re-exports, we don't have the nessesary information
2022
+ // In the case of cross crate re-exports, we don't have the necessary information
2023
2023
// to reconstruct the expression of the discriminant, only the value.
2024
2024
pub ( super ) expr : Option < BodyId > ,
2025
2025
pub ( super ) value : DefId ,
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ pub(crate) struct RenderOptions {
230
230
pub ( crate ) extension_css : Option < PathBuf > ,
231
231
/// A map of crate names to the URL to use instead of querying the crate's `html_root_url`.
232
232
pub ( crate ) extern_html_root_urls : BTreeMap < String , String > ,
233
- /// Whether to give precedence to `html_root_url` or `--exten -html-root-url`.
233
+ /// Whether to give precedence to `html_root_url` or `--extern -html-root-url`.
234
234
pub ( crate ) extern_html_root_takes_precedence : bool ,
235
235
/// A map of the default settings (values are as for DOM storage API). Keys should lack the
236
236
/// `rustdoc-` prefix.
Original file line number Diff line number Diff line change @@ -349,10 +349,10 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
349
349
let mut br_with_padding = String :: with_capacity ( 6 * indent + 28 ) ;
350
350
br_with_padding. push_str ( "\n " ) ;
351
351
352
- let padding_amout =
352
+ let padding_amount =
353
353
if ending == Ending :: Newline { indent + 4 } else { indent + "fn where " . len ( ) } ;
354
354
355
- for _ in 0 ..padding_amout {
355
+ for _ in 0 ..padding_amount {
356
356
br_with_padding. push_str ( " " ) ;
357
357
}
358
358
let where_preds = where_preds. to_string ( ) . replace ( '\n' , & br_with_padding) ;
Original file line number Diff line number Diff line change @@ -1796,10 +1796,11 @@ fn render_struct(
1796
1796
}
1797
1797
match ty {
1798
1798
None => {
1799
- let where_diplayed = g. map ( |g| print_where_clause_and_check ( w, g, cx) ) . unwrap_or ( false ) ;
1799
+ let where_displayed =
1800
+ g. map ( |g| print_where_clause_and_check ( w, g, cx) ) . unwrap_or ( false ) ;
1800
1801
1801
1802
// If there wasn't a `where` clause, we add a whitespace.
1802
- if !where_diplayed {
1803
+ if !where_displayed {
1803
1804
w. write_str ( " {" ) ;
1804
1805
} else {
1805
1806
w. write_str ( "{" ) ;
You can’t perform that action at this time.
0 commit comments