From 9bb990c9a663edc43aebb87ed84b00e6d90685c0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 17 Jan 2017 20:44:31 +0100 Subject: Update markdown syntax to use pandoc's peculiarities --- pages/projects/trie.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pages/projects/trie.md') diff --git a/pages/projects/trie.md b/pages/projects/trie.md index 11e3463..d0bddb2 100644 --- a/pages/projects/trie.md +++ b/pages/projects/trie.md @@ -17,7 +17,7 @@ A prefix tree or _Trie_ is a data structure that can be used to store a dynamic The following example demonstrates the usage of the `Trie` class template specialized on a key and value type. While the first is obviously required the second may be ommitted if not required. Further usage examples are available as Google-Test based [test cases]. -~~~ +```cpp Trie trie; trie.add({1, 1, 1, 1}, 42); @@ -28,8 +28,7 @@ trie.add({2, 3, 1, 2}, 45); std::cout << trie.get({1, 1, 1, 1}) << std::endl; // true std::cout << trie.get({1, 1, 1, 1}).get() << std::endl; // 42 std::cout << trie.get({1, 2}) << std::endl; // false -~~~ -{: .language-cpp} +``` [Github]: https://github.com/KnairdA/Trie [cgit]: http://code.kummerlaender.eu/Trie/ -- cgit v1.2.3