瀏覽代碼

Fix doctest

Jeroen van Rijn 3 月之前
父節點
當前提交
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 {