From 3f9def637029634c8c285d101897a4b813ce8754 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Mon, 12 Mar 2018 23:48:13 +0800 Subject: [PATCH] fix typos (#7710) --- docs/update-user-guide-links.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/update-user-guide-links.py b/docs/update-user-guide-links.py index 94915827ef..7c449d73ef 100644 --- a/docs/update-user-guide-links.py +++ b/docs/update-user-guide-links.py @@ -12,7 +12,7 @@ def find_documents_to_rewrite(): rewrites = [] for doc in moved_docs: location = doc_location(doc) - destinations = get_desinations_for_doc(doc) + destinations = get_destinations_for_doc(doc) if len(destinations) == 0: print("Unable to get possible destinations for %s" % doc) @@ -35,7 +35,7 @@ def doc_location(filename): REDIRECT_REGEX = re.compile("^.*\[(.*)\]\((.*)\)$") -def get_desinations_for_doc(filename): +def get_destinations_for_doc(filename): destination_paths = [] with open(filename) as f: lines = [line.rstrip('\n').rstrip('\r') for line in f.readlines()]