refactor(gauge): fix internal typo (#1048)

This commit is contained in:
EdJoPaTo 2024-04-18 12:47:52 +02:00 committed by GitHub
parent bef5bcf750
commit f3172c59d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,12 +164,12 @@ impl WidgetRef for Gauge<'_> {
buf.set_style(area, self.style);
self.block.render_ref(area, buf);
let inner = self.block.inner_if_some(area);
self.render_gague(inner, buf);
self.render_gauge(inner, buf);
}
}
impl Gauge<'_> {
fn render_gague(&self, gauge_area: Rect, buf: &mut Buffer) {
fn render_gauge(&self, gauge_area: Rect, buf: &mut Buffer) {
if gauge_area.is_empty() {
return;
}