rename none to null
This commit is contained in:
@@ -16,8 +16,8 @@ main func() i32 {
|
||||
total = total + 99
|
||||
}
|
||||
|
||||
# none -> else branch taken; the binding is not in scope there
|
||||
b ?i32 = none
|
||||
# null -> else branch taken; the binding is not in scope there
|
||||
b ?i32 = null
|
||||
if b |v| {
|
||||
total = total + v
|
||||
} else {
|
||||
@@ -31,8 +31,8 @@ main func() i32 {
|
||||
total = total + q^ # +0
|
||||
}
|
||||
|
||||
# optional pointer none -> skipped
|
||||
z ?@i32 = none
|
||||
# optional pointer null -> skipped
|
||||
z ?@i32 = null
|
||||
if z |_| {
|
||||
total = total + 1000
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user