Skip to content

Commit

Permalink
Remove duplicate links
Browse files Browse the repository at this point in the history
Whenever something was mentioned twice, it would be enclosed in two
links instead of one.
  • Loading branch information
fcard committed Aug 6, 2015
1 parent a99e54d commit a81aac3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions docs/lib/Destructuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Relevant functions
---
#### DestructureNode

Created from a [[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode). Can have any number of children
(each corresponding to a child of the [[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)). It doesn't
Created from a [`PatternNode`](./PatternStructure.md#patternnode). Can have any number of children
(each corresponding to a child of the [`PatternNode`](./PatternStructure.md#patternnode)). It doesn't
have a head value, since it's irrelevant to destructuring. It retains
the step, however. Has a slurp [`depth`](./Destructuring.md#depth), and a `name` that is used
to name a temporary variable containing the arguments of the expression
Expand Down
28 changes: 14 additions & 14 deletions docs/lib/PatternStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,49 +125,49 @@ Subtypes:

`makenode(head, step) -> PatternNode`

Creates a [[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode) with the provided `head` and `step`.
Creates a [`PatternNode`](./PatternStructure.md#patternnode) with the provided `head` and `step`.

Related:
- [[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)
- [`PatternNode`](./PatternStructure.md#patternnode)
- [`PatternStep`](./PatternStructure.md#patternstep)

---
#### newnode!

`newnode!(head, step, parent) -> PatternNode`

Creates a [[[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode) from the provided `head` and `step`
Creates a [`PatternNode`](./PatternStructure.md#patternnode) from the provided `head` and `step`
and inserts the node into `parent`.
(returns the new node)

`newnode!(check, head, step, parent) -> PatternNode`

Creates a [[[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode) with `head` and `step`, inserts
it into a [[`PatternGate`](./PatternStructure.md#patterngate)](./PatternStructure.md#patterngate) along with the check, and inserts
Creates a [`PatternNode`](./PatternStructure.md#patternnode) with `head` and `step`, inserts
it into a [`PatternGate`](./PatternStructure.md#patterngate) along with the check, and inserts
the gate into `parent`.

Related:
- [[[`PatternNode`](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)](./PatternStructure.md#patternnode)
- [`PatternNode`](./PatternStructure.md#patternnode)
- [`PatternStep`](./PatternStructure.md#patternstep)
- [[`PatternGate`](./PatternStructure.md#patterngate)](./PatternStructure.md#patterngate)
- [`PatternGate`](./PatternStructure.md#patterngate)

---
#### newleaf!

`newleaf!(parent) -> PatternLeaf`

Creates a [[[`PatternLeaf`](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf) and inserts it into `parent`.
Creates a [`PatternLeaf`](./PatternStructure.md#patternleaf) and inserts it into `parent`.
(returns the new leaf)

`newleaf!(check, parent) -> PatternLeaf`

Creates a [[[`PatternLeaf`](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf), inserts it into a [[`PatternGate`](./PatternStructure.md#patterngate)](./PatternStructure.md#patterngate)
Creates a [`PatternLeaf`](./PatternStructure.md#patternleaf), inserts it into a [`PatternGate`](./PatternStructure.md#patterngate)
along with the check, and then inserts the gate into `parent`.

Related:
- [[[`PatternLeaf`](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf)](./PatternStructure.md#patternleaf)
- [`PatternLeaf`](./PatternStructure.md#patternleaf)
- [`PatternStep`](./PatternStructure.md#patternstep)
- [[`PatternGate`](./PatternStructure.md#patterngate)](./PatternStructure.md#patterngate)
- [`PatternGate`](./PatternStructure.md#patterngate)

---
#### slicenode
Expand Down Expand Up @@ -251,12 +251,12 @@ PatternStructure.SlurpTypes

#### SlurpHead

Represents a slurp algorithm. Can be a [[`LazySlurp`](./PatternStructure.md#lazyslurp)](./PatternStructure.md#lazyslurp) or a [[`GreedySlurp`](./PatternStructure.md#greedyslurp)](./PatternStructure.md#greedyslurp), and
Represents a slurp algorithm. Can be a [`LazySlurp`](./PatternStructure.md#lazyslurp) or a [`GreedySlurp`](./PatternStructure.md#greedyslurp), and
many variations of each.

Subtypes:
- [[`LazySlurp`](./PatternStructure.md#lazyslurp)](./PatternStructure.md#lazyslurp)
- [[`GreedySlurp`](./PatternStructure.md#greedyslurp)](./PatternStructure.md#greedyslurp)
- [`LazySlurp`](./PatternStructure.md#lazyslurp)
- [`GreedySlurp`](./PatternStructure.md#greedyslurp)
- [`GenericLazySlurp`](./PatternStructure.md#genericlazyslurp)
- [`GenericGreedySlurp`](./PatternStructure.md#genericgreedyslurp)
- [`SimpleLastSlurp`](./PatternStructure.md#simplelastslurp)
Expand Down
2 changes: 1 addition & 1 deletion src/Docs/makedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function add_references!(docdb)
end

function get_mentions(text)
mentions = String[]
mentions = Set{String}()
while text != ""
mention, text = capture(text, from="`", until="`")
mention != "" && push!(mentions, mention)
Expand Down

0 comments on commit a81aac3

Please sign in to comment.