1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

flag: fix a comment with an example

This commit is contained in:
Fabien Salathe 2020-05-10 22:27:14 +02:00 committed by GitHub
parent 71c2b26103
commit c9c956fc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,10 +23,10 @@ module flag
// //
// fp.skip_executable() // fp.skip_executable()
// //
// an_int := fp.int('an_int', 0o666, 'some int to define 0o666 is default') // an_int := fp.int('an_int', 0, 0o666, 'some int to define 0o666 is default')
// a_bool := fp.bool('a_bool', false, 'some \'real\' flag') // a_bool := fp.bool('a_bool', 0, false, 'some \'real\' flag')
// a_float := fp.float('a_float', 1.0, 'also floats') // a_float := fp.float('a_float', 0, 1.0, 'also floats')
// a_string := fp.string('a_string', 'no text', 'finally, some text') // a_string := fp.string('a_string', `a`, 'no text', 'finally, some text with "a" an abbreviation')
// //
// additional_args := fp.finalize() or { // additional_args := fp.finalize() or {
// eprintln(err) // eprintln(err)