Skip to content

Commit

Permalink
round(): Mark the second (optional) parameter as optional, since it's
Browse files Browse the repository at this point in the history
	described that way.

setattr():  Clarify that the attribute doesn't need to exist to be set.
  • Loading branch information
freddrake committed Aug 24, 1998
1 parent c859350 commit 607f802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/lib/libfuncs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ \section{Built-in Functions \label{built-in-funcs}}
when passed to \function{eval()}.
\end{funcdesc}

\begin{funcdesc}{round}{x, n}
\begin{funcdesc}{round}{x\optional{, n}}
Return the floating point value \var{x} rounded to \var{n} digits
after the decimal point. If \var{n} is omitted, it defaults to zero.
The result is a floating point number. Values are rounded to the
Expand All @@ -558,9 +558,9 @@ \section{Built-in Functions \label{built-in-funcs}}

\begin{funcdesc}{setattr}{object, name, value}
This is the counterpart of \function{getattr()}. The arguments are an
object, a string and an arbitrary value. The string must be the name
of one of the object's attributes. The function assigns the value to
the attribute, provided the object allows it. For example,
object, a string and an arbitrary value. The string may name an
existing attribute or a new attribute. The function assigns the
value to the attribute, provided the object allows it. For example,
\code{setattr(\var{x}, '\var{foobar}', 123)} is equivalent to
\code{\var{x}.\var{foobar} = 123}.
\end{funcdesc}
Expand Down

0 comments on commit 607f802

Please sign in to comment.