Skip to content
Snippets Groups Projects
Commit 1fdb1e61 authored by Tim Emiola's avatar Tim Emiola
Browse files

Fix a typo

parent e2860c5b
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ require 'socket' ...@@ -33,7 +33,7 @@ require 'socket'
# @param [Fixnum] the maximum port number to accept # @param [Fixnum] the maximum port number to accept
# @return [Fixnum ]a free tcp port # @return [Fixnum ]a free tcp port
def find_unused_tcp_port(min = 32_768, max = 60_000) 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 until a port is assigned in the required range
loop do loop do
socket = Socket.new(:INET, :STREAM, 0) socket = Socket.new(:INET, :STREAM, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment