Fix doctest
This commit is contained in:
1 parent
a0f0e9e778
commit
c705756389
1 file changed
+4
-5
@@ -527,15 +527,14 @@ Example:
|
||||
fmt.println(strings.common_prefix("testing", "test"))
|
||||
fmt.println(strings.common_prefix("testing", "te"))
|
||||
fmt.println(strings.common_prefix("telephone", "te"))
|
||||
fmt.println(strings.common_prefix("testing", "est"))
|
||||
}
|
||||
|
||||
Output:
|
||||
|
||||
"test"
|
||||
"te"
|
||||
"te"
|
||||
""
|
||||
test
|
||||
te
|
||||
te
|
||||
|
||||
|
||||
*/
|
||||
common_prefix :: proc(a, b: string) -> string {
|
||||
|
||||
Reference in new issue
Block a user