From 91995bde534eda7bcf6840e03405c000f7945bc5 Mon Sep 17 00:00:00 2001 From: darksider3 Date: Thu, 5 Sep 2019 00:29:51 +0200 Subject: [PATCH] fix sample code links in algorithm/ and vector/ ... also one spelling error made in "intersection"(vs. intersecton) --- algorithm/copy.md | 2 +- algorithm/copy_backward.md | 2 +- algorithm/copy_if.md | 2 +- algorithm/copy_n.md | 2 +- algorithm/equal_range.md | 2 +- algorithm/includes.md | 2 +- algorithm/lower_bound.md | 2 +- algorithm/max.md | 4 ++-- algorithm/max_element.md | 2 +- algorithm/merge.md | 2 +- algorithm/min.md | 2 +- algorithm/min_element.md | 2 +- algorithm/minmax.md | 2 +- algorithm/minmax_element.md | 2 +- algorithm/set_difference.md | 4 ++-- algorithm/set_intersection.md | 4 ++-- algorithm/set_union.md | 4 ++-- vector/assign.md | 2 +- vector/erase.md | 2 +- vector/push_back.md | 2 +- vector/swap.md | 2 +- 21 files changed, 25 insertions(+), 25 deletions(-) diff --git a/algorithm/copy.md b/algorithm/copy.md index 5923a619..ffa1d8b4 100644 --- a/algorithm/copy.md +++ b/algorithm/copy.md @@ -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)** \ No newline at end of file diff --git a/algorithm/copy_backward.md b/algorithm/copy_backward.md index e1db56bb..60680423 100644 --- a/algorithm/copy_backward.md +++ b/algorithm/copy_backward.md @@ -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)** \ No newline at end of file diff --git a/algorithm/copy_if.md b/algorithm/copy_if.md index f932cd41..ac636ee6 100644 --- a/algorithm/copy_if.md +++ b/algorithm/copy_if.md @@ -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)** \ No newline at end of file diff --git a/algorithm/copy_n.md b/algorithm/copy_n.md index 8161030c..cf2e5f37 100644 --- a/algorithm/copy_n.md +++ b/algorithm/copy_n.md @@ -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)** \ No newline at end of file diff --git a/algorithm/equal_range.md b/algorithm/equal_range.md index 93de96ea..c9ebb4e1 100644 --- a/algorithm/equal_range.md +++ b/algorithm/equal_range.md @@ -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)** \ No newline at end of file diff --git a/algorithm/includes.md b/algorithm/includes.md index 3086a4e6..96b37836 100644 --- a/algorithm/includes.md +++ b/algorithm/includes.md @@ -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)** \ No newline at end of file diff --git a/algorithm/lower_bound.md b/algorithm/lower_bound.md index 3c4c732b..93167602 100644 --- a/algorithm/lower_bound.md +++ b/algorithm/lower_bound.md @@ -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)** \ No newline at end of file diff --git a/algorithm/max.md b/algorithm/max.md index e8017312..78198265 100644 --- a/algorithm/max.md +++ b/algorithm/max.md @@ -9,5 +9,5 @@ // prints 7 std::cout << smallest << " "; ``` -**[See Sample code](snippets/algorithm/max.cpp)** -**[Run Code](https://rextester.com/RCHUQA23545)** \ No newline at end of file +**[See Sample code](../snippets/algorithm/max.cpp)** +**[Run Code](https://rextester.com/RCHUQA23545)** diff --git a/algorithm/max_element.md b/algorithm/max_element.md index 71f81dae..237d4aa8 100644 --- a/algorithm/max_element.md +++ b/algorithm/max_element.md @@ -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)** \ No newline at end of file diff --git a/algorithm/merge.md b/algorithm/merge.md index f4a9890c..55703a85 100644 --- a/algorithm/merge.md +++ b/algorithm/merge.md @@ -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)** \ No newline at end of file diff --git a/algorithm/min.md b/algorithm/min.md index 2f65a957..6931cf5f 100644 --- a/algorithm/min.md +++ b/algorithm/min.md @@ -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)** \ No newline at end of file diff --git a/algorithm/min_element.md b/algorithm/min_element.md index 936bbc2a..13444255 100644 --- a/algorithm/min_element.md +++ b/algorithm/min_element.md @@ -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)** \ No newline at end of file diff --git a/algorithm/minmax.md b/algorithm/minmax.md index 54031a3d..31e40630 100644 --- a/algorithm/minmax.md +++ b/algorithm/minmax.md @@ -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)** \ No newline at end of file diff --git a/algorithm/minmax_element.md b/algorithm/minmax_element.md index eeafe8b9..fd6a8e66 100644 --- a/algorithm/minmax_element.md +++ b/algorithm/minmax_element.md @@ -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)** \ No newline at end of file diff --git a/algorithm/set_difference.md b/algorithm/set_difference.md index 39af5ea7..4e3c43d5 100644 --- a/algorithm/set_difference.md +++ b/algorithm/set_difference.md @@ -28,5 +28,5 @@ } ``` -**[See Sample code](snippets/algorithm/set_difference.cpp)** -**[Run Code](https://rextester.com/QWJK9322)** \ No newline at end of file +**[See Sample code](../snippets/algorithm/set_difference.cpp)** +**[Run Code](https://rextester.com/QWJK9322)** diff --git a/algorithm/set_intersection.md b/algorithm/set_intersection.md index 902c4c05..66f8c379 100644 --- a/algorithm/set_intersection.md +++ b/algorithm/set_intersection.md @@ -28,5 +28,5 @@ } ``` -**[See Sample code](snippets/algorithm/set_intersecton.cpp)** -**[Run Code](https://rextester.com/LEHJ94279)** \ No newline at end of file +**[See Sample code](../snippets/algorithm/set_intersection.cpp)** +**[Run Code](https://rextester.com/LEHJ94279)** diff --git a/algorithm/set_union.md b/algorithm/set_union.md index b9fb0fc8..25c403b7 100644 --- a/algorithm/set_union.md +++ b/algorithm/set_union.md @@ -28,5 +28,5 @@ } ``` -**[See Sample code](snippets/algorithm/set_union.cpp)** -**[Run Code](https://rextester.com/LFXB93097)** \ No newline at end of file +**[See Sample code](../snippets/algorithm/set_union.cpp)** +**[Run Code](https://rextester.com/LFXB93097)** diff --git a/vector/assign.md b/vector/assign.md index 30519754..cde060d5 100644 --- a/vector/assign.md +++ b/vector/assign.md @@ -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)** diff --git a/vector/erase.md b/vector/erase.md index 8f3036d8..f0e1e633 100644 --- a/vector/erase.md +++ b/vector/erase.md @@ -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)** diff --git a/vector/push_back.md b/vector/push_back.md index 7840d906..8fe37952 100644 --- a/vector/push_back.md +++ b/vector/push_back.md @@ -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)** \ No newline at end of file diff --git a/vector/swap.md b/vector/swap.md index 4da1f403..c014a5c6 100644 --- a/vector/swap.md +++ b/vector/swap.md @@ -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)** \ No newline at end of file