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

Skip to content

Commit aa02c84

Browse files
committed
Accept Armin's documentation patch for SF bug #558179.
Adjusted some markup to make the descriptions more consistent.
1 parent 2b492b6 commit aa02c84

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/lib/librfc822.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ \subsection{Message Objects \label{message-objects}}
255255
In particular: \code{\var{m}[name]} is like
256256
\code{\var{m}.getheader(name)} but raises \exception{KeyError} if
257257
there is no matching header; and \code{len(\var{m})},
258-
\code{\var{m}.get(name\optional{, deafult})},
259-
\code{\var{m}.has_key(name)}, \code{\var{m}.keys()},
258+
\code{\var{m}.get(\var{name}\optional{\var{, default}})},
259+
\code{\var{m}.has_key(\var{name})}, \code{\var{m}.keys()},
260260
\code{\var{m}.values()} \code{\var{m}.items()}, and
261-
\code{\var{m}.setdefault(name\optional{, default})} act as expected,
262-
with the one difference that \method{get()} and \method{setdefault()}
263-
use an empty string as the default value. \class{Message} instances
261+
\code{\var{m}.setdefault(\var{name}\optional{\var{, default}})} act as
262+
expected, with the one difference that \method{setdefault()} uses
263+
an empty string as the default value. \class{Message} instances
264264
also support the mapping writable interface \code{\var{m}[name] =
265265
value} and \code{del \var{m}[name]}. \class{Message} objects do not
266266
support the \method{clear()}, \method{copy()}, \method{popitem()}, or

0 commit comments

Comments
 (0)