mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: replace "NB:" with "Note:" (docs/comments)
This commit is contained in:
@ -40,7 +40,7 @@ fn main() {
|
||||
mut fetcher_pool := pool.new_pool_processor(
|
||||
callback: worker_fetch
|
||||
)
|
||||
// NB: if you do not call set_max_jobs, the pool will try to use an optimal
|
||||
// Note: if you do not call set_max_jobs, the pool will try to use an optimal
|
||||
// number of threads, one per each core in your system, which in most
|
||||
// cases is what you want anyway... You can override the automatic choice
|
||||
// by setting the VJOBS environment variable too.
|
||||
|
@ -88,7 +88,7 @@ fn (mut p Player) free() {
|
||||
// http://www.lightlink.com/tjweber/StripWav/WAVE.html
|
||||
// http://www.lightlink.com/tjweber/StripWav/Canon.html
|
||||
// https://tools.ietf.org/html/draft-ema-vpim-wav-00
|
||||
// NB: > The chunks MAY appear in any order except that the Format chunk
|
||||
// Note: > The chunks MAY appear in any order except that the Format chunk
|
||||
// > MUST be placed before the Sound data chunk (but not necessarily
|
||||
// > contiguous to the Sound data chunk).
|
||||
struct RIFFHeader {
|
||||
|
@ -8,7 +8,7 @@ struct Node {
|
||||
right Tree
|
||||
}
|
||||
|
||||
// NB: a match expression, infers the type of its result
|
||||
// Note: a match expression, infers the type of its result
|
||||
// from the type of the return value in the first branch,
|
||||
// => it needs an explicit int(0) cast here:
|
||||
fn size(tree Tree) int {
|
||||
|
@ -24,7 +24,7 @@ pub fn (mut app App) index() vweb.Result {
|
||||
|
||||
fn (mut app App) sse() vweb.Result {
|
||||
mut session := sse.new_connection(app.conn)
|
||||
// NB: you can setup session.write_timeout and session.headers here
|
||||
// Note: you can setup session.write_timeout and session.headers here
|
||||
session.start() or { return app.server_error(501) }
|
||||
session.send_message(data: 'ok') or { return app.server_error(501) }
|
||||
for {
|
||||
|
Reference in New Issue
Block a user