Skip to content

Commit

Permalink
genai: rename source snippets file to docs-snippets_test.go (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben authored Jul 12, 2024
1 parent 19eed92 commit 836b47d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genai/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated from internal/snippets/example_test.go. DO NOT EDIT.
// This file was generated from internal/samples/docs-snippets_test.go. DO NOT EDIT.

// Copyright 2023 Google LLC
//
Expand Down
4 changes: 2 additions & 2 deletions genai/internal/cmd/gen-examples/gen-examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// This code generator takes examples from the internal/snippets directory
// This code generator takes examples from the internal/samples directory
// and copies them to "official" examples in genai/example_test.go, while
// removing snippet comments (between [START...] and [END...]) that are used
// for website documentation purposes.
Expand Down Expand Up @@ -68,7 +68,7 @@ func main() {
}

const preamble = `
// This file was generated from internal/snippets/example_test.go. DO NOT EDIT.
// This file was generated from internal/samples/docs-snippets_test.go. DO NOT EDIT.
`

func printCommentGroup(cg *ast.CommentGroup) {
Expand Down
File renamed without changes.

0 comments on commit 836b47d

Please sign in to comment.