Skip to content

Commit

Permalink
fix sample code links in algorithm/ and vector/
Browse files Browse the repository at this point in the history
... also one spelling error made in "intersection"(vs. intersecton)
  • Loading branch information
Darksider3 committed Sep 4, 2019
1 parent 82e5684 commit 91995bd
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion algorithm/copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
std::cout << value << " ";
}
```
**[See Sample code](snippets/algorithm/copy.cpp)**
**[See Sample code](../snippets/algorithm/copy.cpp)**
**[Run Code](https://rextester.com/DPG88459)**
2 changes: 1 addition & 1 deletion algorithm/copy_backward.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Elements are copied in reverse order (last element is copied first), but the rel
std::cout << value << " ";
}
```
**[See Sample code](snippets/algorithm/copy_backward.cpp)**
**[See Sample code](../snippets/algorithm/copy_backward.cpp)**
**[Run Code](https://rextester.com/INZK42877)**
2 changes: 1 addition & 1 deletion algorithm/copy_if.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
std::cout << value << " ";
}
```
**[See Sample code](snippets/algorithm/copy_if.cpp)**
**[See Sample code](../snippets/algorithm/copy_if.cpp)**
**[Run Code](https://rextester.com/OMC23438)**
2 changes: 1 addition & 1 deletion algorithm/copy_n.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
std::cout << value << " ";
}
```
**[See Sample code](snippets/algorithm/copy_n.cpp)**
**[See Sample code](../snippets/algorithm/copy_n.cpp)**
**[Run Code](https://rextester.com/GXR34835)**
2 changes: 1 addition & 1 deletion algorithm/equal_range.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
}

```
**[See Sample code](snippets/algorithm/equal_range.cpp)**
**[See Sample code](../snippets/algorithm/equal_range.cpp)**
**[Run Code](https://rextester.com/ZYGGE30271)**
2 changes: 1 addition & 1 deletion algorithm/includes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
std::cout << " v1 contains v3? " << v1ContainsV3 << std::endl;

```
**[See Sample code](snippets/algorithm/includes.cpp)**
**[See Sample code](../snippets/algorithm/includes.cpp)**
**[Run Code](https://rextester.com/MMPQ67900)**
2 changes: 1 addition & 1 deletion algorithm/lower_bound.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
std::cout << "The lower bound element is " << *lowerBoundIt << '\n';

```
**[See Sample code](snippets/algorithm/lower_bound.cpp)**
**[See Sample code](../snippets/algorithm/lower_bound.cpp)**
**[Run Code](https://rextester.com/KFK22059)**
4 changes: 2 additions & 2 deletions algorithm/max.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
// prints 7
std::cout << smallest << " ";
```
**[See Sample code](snippets/algorithm/max.cpp)**
**[Run Code](https://rextester.com/RCHUQA23545)**
**[See Sample code](../snippets/algorithm/max.cpp)**
**[Run Code](https://rextester.com/RCHUQA23545)**
2 changes: 1 addition & 1 deletion algorithm/max_element.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
std::cout << "The greatest element is " << *greatestIt << '\n';

```
**[See Sample code](snippets/algorithm/max_element.cpp)**
**[See Sample code](../snippets/algorithm/max_element.cpp)**
**[Run Code](https://rextester.com/MYCU8700)**
2 changes: 1 addition & 1 deletion algorithm/merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
std::cout << value << " ";
}
```
**[See Sample code](snippets/algorithm/merge.cpp)**
**[See Sample code](../snippets/algorithm/merge.cpp)**
**[Run Code](https://rextester.com/TPXUS57604)**
2 changes: 1 addition & 1 deletion algorithm/min.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
// prints 3
std::cout << smallest << " ";
```
**[See Sample code](snippets/algorithm/min.cpp)**
**[See Sample code](../snippets/algorithm/min.cpp)**
**[Run Code](https://rextester.com/RCHUQA23545)**
2 changes: 1 addition & 1 deletion algorithm/min_element.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
std::cout << "The smallest element is " << *smallestIt << '\n';

```
**[See Sample code](snippets/algorithm/min_element.cpp)**
**[See Sample code](../snippets/algorithm/min_element.cpp)**
**[Run Code](https://rextester.com/ZVBA46979)**
2 changes: 1 addition & 1 deletion algorithm/minmax.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
" Max is " << minMax2.second << std::endl;

```
**[See Sample code](snippets/algorithm/minmax.cpp)**
**[See Sample code](../snippets/algorithm/minmax.cpp)**
**[Run Code](https://rextester.com/AYBQP34022)**
2 changes: 1 addition & 1 deletion algorithm/minmax_element.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
" Max is " << *minMaxPair.second << std::endl;

```
**[See Sample code](snippets/algorithm/minmax_element.cpp)**
**[See Sample code](../snippets/algorithm/minmax_element.cpp)**
**[Run Code](https://rextester.com/NSPL12489)**
4 changes: 2 additions & 2 deletions algorithm/set_difference.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
}

```
**[See Sample code](snippets/algorithm/set_difference.cpp)**
**[Run Code](https://rextester.com/QWJK9322)**
**[See Sample code](../snippets/algorithm/set_difference.cpp)**
**[Run Code](https://rextester.com/QWJK9322)**
4 changes: 2 additions & 2 deletions algorithm/set_intersection.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
}

```
**[See Sample code](snippets/algorithm/set_intersecton.cpp)**
**[Run Code](https://rextester.com/LEHJ94279)**
**[See Sample code](../snippets/algorithm/set_intersection.cpp)**
**[Run Code](https://rextester.com/LEHJ94279)**
4 changes: 2 additions & 2 deletions algorithm/set_union.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
}

```
**[See Sample code](snippets/algorithm/set_union.cpp)**
**[Run Code](https://rextester.com/LFXB93097)**
**[See Sample code](../snippets/algorithm/set_union.cpp)**
**[Run Code](https://rextester.com/LFXB93097)**
2 changes: 1 addition & 1 deletion vector/assign.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Two variations:
example.assign(3, 0);
// example is now: { 0, 0, 0 }
```
**[See Sample code](snippets/vector/assign.cpp)**
**[See Sample code](../snippets/vector/assign.cpp)**
**[Run Code](https://rextester.com/LWBW83885)**
2 changes: 1 addition & 1 deletion vector/erase.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Two variations:
vector2.erase( std::remove(vector2.begin(),vector2.end(),valueToRemove),vector2.end());

```
**[See Sample code](snippets/vector/erase.cpp)**
**[See Sample code](../snippets/vector/erase.cpp)**
**[Run Code](https://rextester.com/XWYI46957)**
2 changes: 1 addition & 1 deletion vector/push_back.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
vector1.push_back(2);

```
**[See Sample code](snippets/vector/push_back.cpp)**
**[See Sample code](../snippets/vector/push_back.cpp)**
**[Run Code](https://rextester.com/JBQCG9959)**
2 changes: 1 addition & 1 deletion vector/swap.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
vector1.swap(vector2);

```
**[See Sample code](snippets/vector/swap.cpp)**
**[See Sample code](../snippets/vector/swap.cpp)**
**[Run Code](https://rextester.com/PNR78595)**

0 comments on commit 91995bd

Please sign in to comment.