mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
semver: fix doc comment examples
This commit is contained in:
parent
044c52b625
commit
e88ac77a01
2 changed files with 1 additions and 6 deletions
|
@ -60,7 +60,7 @@ pub fn (ver Version) increment(typ Increment) Version {
|
||||||
}
|
}
|
||||||
|
|
||||||
// satisfies returns `true` if the `input` expression can be validated to `true` when run against this `Version`.
|
// satisfies returns `true` if the `input` expression can be validated to `true` when run against this `Version`.
|
||||||
// Example: assert semver.build(1,0,0).satisfies('<=2.0.0') == true
|
// Example: assert semver.build(1,0,0).satisfies('<=2.0.0')
|
||||||
// Example: assert semver.build(1,0,0).satisfies('>=2.0.0') == false
|
// Example: assert semver.build(1,0,0).satisfies('>=2.0.0') == false
|
||||||
pub fn (ver Version) satisfies(input string) bool {
|
pub fn (ver Version) satisfies(input string) bool {
|
||||||
return version_satisfies(ver, input)
|
return version_satisfies(ver, input)
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
Module {
|
|
||||||
name: 'semver'
|
|
||||||
version: '0.4.11'
|
|
||||||
deps: []
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue