Skip to content

Commit

Permalink
Fix typo in docstring (#9730)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapeyre committed Mar 4, 2023
1 parent 35feded commit dbdf867
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qiskit/visualization/counts_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ def _plotting_core(

if legend and len(legend) != len(data):
raise VisualizationError(
"Length of legendL (%s) doesn't match "
"number of input executions: %s" % (len(legend), len(data))
f"Length of legend ({len(legend)}) doesn't match number of input executions ({len(data)})."
)

# Set bar colors
Expand Down

0 comments on commit dbdf867

Please sign in to comment.