Skip to content

Commit 6c0a6bf

Browse files
authored
Merge pull request #139 from kianmeng/fix-typos
Fix typos
2 parents 39db0ed + 1fa6c8f commit 6c0a6bf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

History.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Add missing files
187187
* 1 minor fix:
188188
* Don't send label through printf so that % work directly
189189

190-
* 1 documenation changes:
190+
* 1 documentation changes:
191191
* Use HEREDOC and wrap at 80 chars for example result description
192192

193193
* 1 usage fix:

lib/benchmark/compare.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def compare(*entries, order: :fastest)
6464
sorted = entries.sort_by{ |e| e.stats.central_tendency }.reverse
6565
baseline = sorted.shift
6666
else
67-
raise ArgumentError, "Unknwon order: #{order.inspect}"
67+
raise ArgumentError, "Unknown order: #{order.inspect}"
6868
end
6969

7070
$stdout.puts "\nComparison:"

lib/benchmark/ips/job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def time_us before, after
203203
(after.to_f - before.to_f) * MICROSECONDS_PER_SECOND
204204
end
205205

206-
# Calculate the interations per second given the number
206+
# Calculate the iterations per second given the number
207207
# of cycles run and the time in microseconds that elapsed.
208208
# @param [Integer] cycles Cycles.
209209
# @param [Integer] time_us Time in microsecond.

lib/benchmark/ips/report.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def samples
6262

6363
# Control if the total time the job took is reported.
6464
# Typically this value is not significant because it's very
65-
# close to the expected time, so it's supressed by default.
65+
# close to the expected time, so it's suppressed by default.
6666
def show_total_time!
6767
@show_total_time = true
6868
end
@@ -115,7 +115,7 @@ def header
115115
@label.to_s.rjust(20)
116116
end
117117

118-
# Return string repesentation of Entry object.
118+
# Return string representation of Entry object.
119119
# @return [String] Header and body.
120120
def to_s
121121
"#{header} #{body}"

0 commit comments

Comments
 (0)