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:
@ -6,7 +6,7 @@ fn test_time_after_2038_works() {
|
||||
error_time := after_time.add_days(180)
|
||||
dump(error_time)
|
||||
assert error_time.str() == '2038-01-19 00:00:00'
|
||||
// NB: the next date is after Y2K38, it should NOT wrap:
|
||||
// Note: the next date is after Y2K38, it should NOT wrap:
|
||||
error_time2 := after_time.add_days(181)
|
||||
dump(error_time2)
|
||||
assert error_time2.str() == '2038-01-20 00:00:00'
|
||||
|
@ -1,6 +1,6 @@
|
||||
import time
|
||||
|
||||
// NB: on CI jobs, especially msvc ones, sleep_ms may sleep for much more
|
||||
// Note: on CI jobs, especially msvc ones, sleep_ms may sleep for much more
|
||||
// time than you have specified. To avoid false positives from CI test
|
||||
// failures, some of the asserts will be run only if you pass `-d stopwatch`
|
||||
fn test_stopwatch_works_as_intended() {
|
||||
|
@ -47,7 +47,7 @@ fn sys_mono_now_darwin() u64 {
|
||||
return (tm - time.start_time) * time.time_base.numer / time.time_base.denom
|
||||
}
|
||||
|
||||
// NB: vpc_now_darwin is used by `v -profile` .
|
||||
// Note: vpc_now_darwin is used by `v -profile` .
|
||||
// It should NOT call *any other v function*, just C functions and casts.
|
||||
[inline]
|
||||
fn vpc_now_darwin() u64 {
|
||||
|
@ -57,7 +57,7 @@ pub fn sys_mono_now() u64 {
|
||||
}
|
||||
}
|
||||
|
||||
// NB: vpc_now is used by `v -profile` .
|
||||
// Note: vpc_now is used by `v -profile` .
|
||||
// It should NOT call *any other v function*, just C functions and casts.
|
||||
[inline]
|
||||
fn vpc_now() u64 {
|
||||
|
@ -79,7 +79,7 @@ pub fn sys_mono_now() u64 {
|
||||
return (tm - time.start_time) * 1000000000 / time.freq_time
|
||||
}
|
||||
|
||||
// NB: vpc_now is used by `v -profile` .
|
||||
// Note: vpc_now is used by `v -profile` .
|
||||
// It should NOT call *any other v function*, just C functions and casts.
|
||||
[inline]
|
||||
fn vpc_now() u64 {
|
||||
|
Reference in New Issue
Block a user