mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
string: remove abs()
This commit is contained in:
parent
ef2ab31e88
commit
bc563930f7
@ -724,13 +724,6 @@ fn (u ustring) free() {
|
|||||||
u.runes.free()
|
u.runes.free()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn abs(a int) int {
|
|
||||||
if a >= 0 {
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
return -a
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn (c byte) is_digit() bool {
|
pub fn (c byte) is_digit() bool {
|
||||||
return c >= `0` && c <= `9`
|
return c >= `0` && c <= `9`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user