Skip to content

Commit 3a3d787

Browse files
committed
Fix typos
1 parent f82e018 commit 3a3d787

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/unicode_plot/barplot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def print_row(out, row_index)
7373
#
7474
# Draws a horizontal barplot.
7575
#
76-
# @param text [Array<String>] The lables / captions of the bars.
76+
# @param text [Array<String>] The labels / captions of the bars.
7777
# @param heights [Array<Numeric>] The values / heights of the bars.
7878
# @param xscale [nil,:log,:ln,:log10,:lg,:log2,:lb,callable]
7979
# A function name symbol or callable object to transform the bar

lib/unicode_plot/boxplot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def print_row(out, row_index)
163163
name = args[0]
164164
data = args[1]
165165
else
166-
raise ArgumentError, "worng number of arguments"
166+
raise ArgumentError, "wrong number of arguments"
167167
end
168168

169169
if data.empty?

lib/unicode_plot/scatterplot.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Scatterplot < GridPlot
1717
x = Array(args[0])
1818
y = Array(args[1])
1919
else
20-
raise ArgumentError, "worng number of arguments"
20+
raise ArgumentError, "wrong number of arguments"
2121
end
2222

2323
plot = Scatterplot.new(x, y, canvas, **kw)
@@ -38,7 +38,7 @@ class Scatterplot < GridPlot
3838
x = Array(args[0])
3939
y = Array(args[1])
4040
else
41-
raise ArgumentError, "worng number of arguments"
41+
raise ArgumentError, "wrong number of arguments"
4242
end
4343

4444
color = color == :auto ? plot.next_color : color

0 commit comments

Comments
 (0)