all: change empty comment to newline (#22053)

This commit is contained in:
yuyi 2024-08-16 17:09:30 +08:00 committed by GitHub
parent 38e23a76f3
commit cb58db56ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 31 additions and 33 deletions

View file

@ -3723,7 +3723,7 @@ struct Dog {}
fn main() {
cat := Cat{}
assert dump(cat.speak()) == 'meow!'
//
a := Adoptable(cat)
assert dump(a.speak()) == 'adopt me!' // call Adoptable's `speak`
if a is Cat {
@ -3732,7 +3732,7 @@ fn main() {
// Cat `speak`, NOT the Adoptable `speak`:
dump(a.speak()) // meow!
}
//
b := Adoptable(Dog{})
assert dump(b.speak()) == 'adopt me!' // call Adoptable's `speak`
// if b is Dog {
@ -7328,7 +7328,7 @@ fn main() {
nr_users := C.sqlite3_column_int(stmt, 0)
C.sqlite3_finalize(stmt)
println('There are ${nr_users} users in the database.')
//
error_msg := &char(0)
query_all_users := 'select * from users'
rc := C.sqlite3_exec(db, &char(query_all_users.str), my_callback, voidptr(7), &error_msg)