mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-04 12:04:41 +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", "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