diff --git a/src/ruby/spec/port_picker.rb b/src/ruby/spec/port_picker.rb
index 189187450515621e6b33f3acf91ee5f84348ee2c..98ffbacc1bcfee074fbde8769b8ff631a6bff9c7 100644
--- a/src/ruby/spec/port_picker.rb
+++ b/src/ruby/spec/port_picker.rb
@@ -33,7 +33,7 @@ require 'socket'
 # @param [Fixnum] the maximum port number to accept
 # @return [Fixnum ]a free tcp port
 def find_unused_tcp_port(min = 32_768, max = 60_000)
-  # Allow the system to assign a port, by sp[ecifying 0.
+  # Allow the system to assign a port, by specifying 0.
   # Loop until a port is assigned in the required range
   loop do
     socket = Socket.new(:INET, :STREAM, 0)