Fix typo in Damerau–Levenshtein documentation

This commit is contained in:
Martchus 2019-08-16 14:38:57 +02:00
parent 014127e4c4
commit bc9e05ccb7
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ namespace CppUtilities {
/// \brief The DistanceArray is a 2D array which is allocated either on the stack or the heap. /// \brief The DistanceArray is a 2D array which is allocated either on the stack or the heap.
using DistanceArray = MultiArray<size_t, NoneOwningMultiArray, size_t, size_t>; using DistanceArray = MultiArray<size_t, NoneOwningMultiArray, size_t, size_t>;
/// \brief Initializes to distance array. /// \brief Initializes the distance array.
/// ///
/// For size1=5 and size2=4 it would look like this: /// For size1=5 and size2=4 it would look like this:
/// ``` /// ```
@ -107,10 +107,10 @@ size_t performDamerauLevenshteinAlgorithmAllocatingOnStack(
* - transposition: swap any pair of adjacent characters * - transposition: swap any pair of adjacent characters
* *
* \remarks * \remarks
* - Computing Optimal string alignment distance is a *different* thing. * - Computing "Optimal string alignment distance" is a *different* thing.
* - The algorithm operates on byte-level. So characters requiring more than one byte in * - The algorithm operates on byte-level. So characters requiring more than one byte in
* the used character encoding (eg. UTF-8 encoded German umlauts) are counted as multiple * the used character encoding (e.g. UTF-8 encoded German umlauts) are counted as multiple
* characters (eg. substitution of those umlauts with non-umlauts requires 2 editing steps). * characters (e.g. substitution of those umlauts with non-umlauts requires 2 editing steps).
* - The memory consumption of this algorithm is considerably. The required memory increases * - The memory consumption of this algorithm is considerably. The required memory increases
* with the product of \a size1 and \a size2. Pass only short words to this function! * with the product of \a size1 and \a size2. Pass only short words to this function!
*/ */