diff --git a/doc/python/hover-text-and-formatting.md b/doc/python/hover-text-and-formatting.md
index 770d07536e7..1f9a0a475c3 100644
--- a/doc/python/hover-text-and-formatting.md
+++ b/doc/python/hover-text-and-formatting.md
@@ -228,7 +228,7 @@ df_2007 = px.data.gapminder().query("year==2007")
fig = px.scatter(df_2007, x="gdpPercap", y="lifeExp", log_x=True, color='continent'
)
print("plotly express hovertemplate:", fig.data[0].hovertemplate)
-fig.update_traces(hovertemplate='GDP: %{x}
Life Expectany: %{y}') #
+fig.update_traces(hovertemplate='GDP: %{x}
Life Expectancy: %{y}') #
fig.update_traces(hovertemplate=None, selector={'name':'Europe'}) # revert to default hover
print("user_defined hovertemplate:", fig.data[0].hovertemplate)
fig.show()
@@ -404,4 +404,4 @@ fig.show()
#### Reference
-See https://plotly.com/python/reference/ for more information and chart attribute options!
\ No newline at end of file
+See https://plotly.com/python/reference/ for more information and chart attribute options!