Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab1df4f

Browse files
committed
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more difficult for non-native speakers. Add an index entry for the Telnet protocol. Always refer to the protocol as Telnet instead of telnet.
1 parent 40fb452 commit ab1df4f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Doc/lib/libtelnetlib.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ \section{\module{telnetlib} ---
55
\modulesynopsis{Telnet client class.}
66
\sectionauthor{Skip Montanaro}{[email protected]}
77

8+
\index{protocol!Telnet}
9+
810
The \module{telnetlib} module provides a \class{Telnet} class that
911
implements the Telnet protocol. See \rfc{854} for details about the
1012
protocol.
1113

1214

1315
\begin{classdesc}{Telnet}{\optional{host\optional{, port}}}
14-
\class{Telnet} represents a connection to a telnet server. The
16+
\class{Telnet} represents a connection to a Telnet server. The
1517
instance is initially not connected by default; the \method{open()}
1618
method must be used to establish a connection. Alternatively, the
1719
host name and optional port number can be passed to the constructor,
@@ -92,7 +94,7 @@ \subsection{Telnet Objects \label{telnet-objects}}
9294
\begin{methoddesc}{open}{host\optional{, port}}
9395
Connect to a host.
9496
The optional second argument is the port number, which
95-
defaults to the standard telnet port (23).
97+
defaults to the standard Telnet port (23).
9698

9799
Do not try to reopen an already connected instance.
98100
\end{methoddesc}
@@ -127,7 +129,7 @@ \subsection{Telnet Objects \label{telnet-objects}}
127129
\end{methoddesc}
128130

129131
\begin{methoddesc}{interact}{}
130-
Interaction function, emulates a very dumb telnet client.
132+
Interaction function, emulates a very dumb Telnet client.
131133
\end{methoddesc}
132134

133135
\begin{methoddesc}{mt_interact}{}
@@ -151,7 +153,7 @@ \subsection{Telnet Objects \label{telnet-objects}}
151153
\code{(-1, None, \var{text})} where \var{text} is the text received so
152154
far (may be the empty string if a timeout happened).
153155

154-
If a regular expression ends with a greedy match (e.g. \regexp{.*})
156+
If a regular expression ends with a greedy match (such as \regexp{.*})
155157
or if more than one expression can match the same input, the
156158
results are indeterministic, and may depend on the I/O timing.
157159
\end{methoddesc}

0 commit comments

Comments
 (0)