From 0248a3ba1bfd4415f48637032c467cbec108e2a8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 5 Apr 2016 14:56:42 +0200 Subject: [PATCH] Fixed a documentation error in string_suggestions --- evennia/utils/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/utils/utils.py b/evennia/utils/utils.py index f777b6af8e..cf458bf196 100644 --- a/evennia/utils/utils.py +++ b/evennia/utils/utils.py @@ -1204,9 +1204,9 @@ def string_suggestions(string, vocabulary, cutoff=0.6, maxnum=3): maxnum (int): Maximum number of suggestions to return. Returns: - suggestions (list): Suggestions from `vocabulary` that fall - under the `cutoff` setting. Could be empty if there are no - matches. + suggestions (list): Suggestions from `vocabulary` with a + similarity-rating that higher than or equal to `cutoff`. + Could be empty if there are no matches. """ return [tup[1] for tup in sorted([(string_similarity(string, sugg), sugg)