Skip to main content

longest_common_prefix

Function longest_common_prefix 

Source
pub fn longest_common_prefix<'a>(s1: &'a str, s2: &'a str) -> &'a str
Expand description

Compute the longest common prefix of s1 and s2. Pure, used by tab_completion_target and exposed for tests.