Skip to content

Commit

Permalink
Fix typo in docstring (#9730) (#9732)
Browse files Browse the repository at this point in the history
(cherry picked from commit dbdf867)

Co-authored-by: John Lapeyre <jlapeyre@users.noreply.github.com>
  • Loading branch information
mergify[bot] and jlapeyre committed Mar 4, 2023
1 parent 7c43efc commit bf13dd9
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 bf13dd9

Please sign in to comment.