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:
Marshall Bowers 2024-12-03 15:27:58 -05:00 committed by GitHub
parent 165d50ff5b
commit 88b0d3c78e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -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 }
}
}