milvus-io / milvus-docs

This repository is for Milvus technical documentation update and maintenance. Visit Milvus.io for fully rendered technical documents.
Apache License 2.0
72 stars 298 forks source link

[ERROR]: lack of the trailing comma after the last argument of function call in golang code snippets #2304

Open hsldymq opened 1 year ago

hsldymq commented 1 year ago

Is there an existing issue for this?

Issue

Some golang code snippets in the doc have syntax error, for example: The chapter "Create a partition", the code snippet for golang is

err := milvusClient.CreatePartition(
  context.Background(),
  "book", 
  "novel" // <- lack of the trailing comma
)
if err != nil {
  log.Fatal("failed to create partition:", err.Error())
}

to be correct, it should be like

err := milvusClient.CreatePartition(
  context.Background(),
  "book",              
  "novel", // trailing comma added
)
if err != nil {
  log.Fatal("failed to create partition:", err.Error())
}

Suggestion

No response

Anything else?

No response

hsldymq commented 1 year ago

pull request #2305 fixed this issue