markdown: Make cx the last parameter to the constructor (#21487)
I noticed that `Markdown::new` didn't have the `cx` as the final parameter, as is conventional. This PR fixes that. Release Notes: - N/A
This commit is contained in:
@@ -178,7 +178,7 @@ impl MarkdownExample {
|
||||
cx: &mut WindowContext,
|
||||
) -> Self {
|
||||
let markdown =
|
||||
cx.new_view(|cx| Markdown::new(text, style, Some(language_registry), cx, None));
|
||||
cx.new_view(|cx| Markdown::new(text, style, Some(language_registry), None, cx));
|
||||
Self { markdown }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ pub fn main() {
|
||||
heading: Default::default(),
|
||||
};
|
||||
let markdown = cx.new_view(|cx| {
|
||||
Markdown::new(MARKDOWN_EXAMPLE.into(), markdown_style, None, cx, None)
|
||||
Markdown::new(MARKDOWN_EXAMPLE.into(), markdown_style, None, None, cx)
|
||||
});
|
||||
|
||||
HelloWorld { markdown }
|
||||
|
||||
Reference in New Issue
Block a user