瀏覽代碼

x/model: add some clarity to Fill example about what is showing

Blake Mizerany 1 年之前
父節點
當前提交
fc595d89bf
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      x/model/name_test.go

+ 2 - 4
x/model/name_test.go

@@ -314,10 +314,8 @@ func TestFill(t *testing.T) {
 }
 
 func ExampleFill() {
-	r := Fill(
-		ParseName("mistral"),
-		ParseName("registry.ollama.com/library/PLACEHOLDER:latest+Q4_0"),
-	)
+	defaults := ParseName("registry.ollama.com/library/PLACEHOLDER:latest+Q4_0")
+	r := Fill(ParseName("mistral"), defaults)
 	fmt.Println(r)
 
 	// Output: