Jeroen van Rijn 3 месяцев назад
Родитель
Сommit
c705756389
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      core/strings/strings.odin

+ 4 - 5
core/strings/strings.odin

@@ -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 {