diff options
author | Jjp137 <Jjp137@users.noreply.github.com> | 2019-06-01 23:29:31 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-02 08:29:31 +0200 |
commit | 9ee2ecf0a63ed001bda077bf57fd0303eaf1016c (patch) | |
tree | 1fcea5b889d56fcc3cf207c78164d1ac803c582c /lib/pure | |
parent | 1255b3c8647c2ad4be831698633eaf2f4a38795c (diff) | |
download | Nim-9ee2ecf0a63ed001bda077bf57fd0303eaf1016c.tar.gz |
sets: minor documentation fixes [ci skip] (#11377)
Mainly replace a backslash, which was supposed to represent set difference, with the Unicode symbol for set difference (U+2216). The backslash did not appear in the output since it is used to escape characters in reST. Fix a few typos as well.
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/collections/sets.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim index 86a72533e..af3f59a4a 100644 --- a/lib/pure/collections/sets.nim +++ b/lib/pure/collections/sets.nim @@ -233,7 +233,7 @@ proc toHashSet*[A](keys: openArray[A]): HashSet[A] = iterator items*[A](s: HashSet[A]): A = ## Iterates over elements of the set `s`. ## - ## If you need a sequence with the elelments you can use `sequtils.toSeq + ## If you need a sequence with the elements you can use `sequtils.toSeq ## template <sequtils.html#toSeq.t,untyped>`_. ## ## .. code-block:: @@ -439,7 +439,7 @@ proc difference*[A](s1, s2: HashSet[A]): HashSet[A] = ## ## The same as `s1 - s2 <#-,HashSet[A],HashSet[A]>`_. ## - ## The difference of two sets is represented mathematically as *A \ B* and is + ## The difference of two sets is represented mathematically as *A ∖ B* and is ## the set of all objects that are members of `s1` and not members of `s2`. ## ## See also: @@ -559,7 +559,7 @@ proc `==`*[A](s, t: HashSet[A]): bool = s.counter == t.counter and s <= t proc map*[A, B](data: HashSet[A], op: proc (x: A): B {.closure.}): HashSet[B] = - ## Returns a new set after applying `op` pric on each of the elements of + ## Returns a new set after applying `op` proc on each of the elements of ##`data` set. ## ## You can use this proc to transform the elements from a set. |