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

Skip to content

Commit fa8dd5f

Browse files
committed
Fix markup and punctuation
1 parent 7c7efe9 commit fa8dd5f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/lib/libsets.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ \section{\module{sets} ---
3333
The set classes are implemented using dictionaries. As a result, sets
3434
cannot contain mutable elements such as lists or dictionaries.
3535
However, they can contain immutable collections such as tuples or
36-
instances of \class(ImmutableSet). For convenience in implementing
36+
instances of \class{ImmutableSet}. For convenience in implementing
3737
sets of sets, inner sets are automatically converted to immutable
3838
form, for example, \code{Set([Set(['dog'])])} is transformed to
3939
\code{Set([ImmutableSet(['dog'])])}.
@@ -140,8 +140,8 @@ \subsection{Set Objects}
140140
\lineii{\var{s}.remove(\var{x})}
141141
{Remove element \var{x} from set \var{s}}
142142
\lineii{\var{s}.discard(\var{x})}
143-
{Removes element \var{x} from set \var{s} like \var{s}.remove(\var{x})
144-
but does not raise a KeyError if \var{x} is not in \var{s}}
143+
{Removes element \var{x} from set \var{s}. Like \var{s}.remove(\var{x})
144+
but does not raise KeyError if \var{x} is not in \var{s}}
145145
\lineii{\var{s}.pop()}
146146
{Remove and return an element from \var{s}; no guarantee is
147147
made about which element is removed}
@@ -212,6 +212,6 @@ \subsection{Protocol for automatic conversion to immutable
212212

213213
The two mechanisms for adding hashability are normally invisible to the
214214
user; however, a conflict can arise in a multi-threaded environment
215-
where one thread is updating a Set while another has temporarily wrapped it
215+
where one thread is updating a set while another has temporarily wrapped it
216216
in \class{_TemporarilyImmutableSet}. In other words, sets of mutable sets
217217
are not thread-safe.

0 commit comments

Comments
 (0)