mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix doctest
This commit is contained in:
@@ -527,15 +527,14 @@ Example:
|
|||||||
fmt.println(strings.common_prefix("testing", "test"))
|
fmt.println(strings.common_prefix("testing", "test"))
|
||||||
fmt.println(strings.common_prefix("testing", "te"))
|
fmt.println(strings.common_prefix("testing", "te"))
|
||||||
fmt.println(strings.common_prefix("telephone", "te"))
|
fmt.println(strings.common_prefix("telephone", "te"))
|
||||||
fmt.println(strings.common_prefix("testing", "est"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
|
|
||||||
"test"
|
test
|
||||||
"te"
|
te
|
||||||
"te"
|
te
|
||||||
""
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
common_prefix :: proc(a, b: string) -> string {
|
common_prefix :: proc(a, b: string) -> string {
|
||||||
|
|||||||
Reference in New Issue
Block a user