Skip to content

Commit 40cacb1

Browse files
committed
server: fix a documentation link
1 parent 998eef5 commit 40cacb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/tailsql/tailsql.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func NewServer(opts Options) (*Server, error) {
173173
}
174174

175175
// SetDB adds or replaces the database associated with the specified source in
176-
// s with the given open db and options. See [SetSource].
176+
// s with the given open db and options. See [Server.SetSource].
177177
func (s *Server) SetDB(source string, db *sql.DB, opts *DBOptions) bool {
178178
return s.SetSource(source, sqlDB{DB: db}, opts)
179179
}
@@ -185,7 +185,7 @@ func (s *Server) SetDB(source string, db *sql.DB, opts *DBOptions) bool {
185185
// the old database handle is closed, and SetDB reports true.
186186
//
187187
// If no database was already open for the given source, a new source is added
188-
// and SetDB reports false.
188+
// and SetSource reports false.
189189
func (s *Server) SetSource(source string, db Queryable, opts *DBOptions) bool {
190190
if db == nil {
191191
panic("new database is nil")

0 commit comments

Comments
 (0)