From 6641457af2586de2b64671835f0f85faf94d3e6f Mon Sep 17 00:00:00 2001 From: "Chris West (Faux)" Date: Fri, 14 Jul 2017 14:06:30 +0100 Subject: [PATCH] spello --- examples/sources.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/sources.rs b/examples/sources.rs index 7ddc805..2d20ab2 100644 --- a/examples/sources.rs +++ b/examples/sources.rs @@ -60,14 +60,14 @@ fn main() { } } - for src in lexographic_sort(source_versions.keys()) { - for ver in lexographic_sort(source_versions[src].iter()) { + for src in lexicographic_sort(source_versions.keys()) { + for ver in lexicographic_sort(source_versions[src].iter()) { println!("{}={}", src, ver); } } } -fn lexographic_sort(input: I) -> Vec +fn lexicographic_sort(input: I) -> Vec where T: Ord + Clone, I: Iterator,