szip: fix doc-comments (#8911)

pull/8926/head
StunxFS 2021-02-23 03:43:19 -04:00 committed by GitHub
parent c113abe1a4
commit fd59182659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -75,9 +75,9 @@ fn (om OpenMode) to_byte() byte {
} }
// open opens zip archive with compression level using the given mode. // open opens zip archive with compression level using the given mode.
// name: the name of the zip file to open // name: the name of the zip file to open.
// level: can be any value of the CompressionLevel enum // level: can be any value of the CompressionLevel enum.
// mode: can be any value of the OpenMode enum // mode: can be any value of the OpenMode enum.
pub fn open(name string, level CompressionLevel, mode OpenMode) ?&Zip { pub fn open(name string, level CompressionLevel, mode OpenMode) ?&Zip {
if name.len == 0 { if name.len == 0 {
return error('szip: name of file empty') return error('szip: name of file empty')
@ -127,7 +127,7 @@ pub fn (mut zentry Zip) name() string {
return unsafe { name.vstring() } return unsafe { name.vstring() }
} }
/// index returns an index of the current zip entry. // index returns an index of the current zip entry.
pub fn (mut zentry Zip) index() ?int { pub fn (mut zentry Zip) index() ?int {
index := int(C.zip_entry_index(zentry)) index := int(C.zip_entry_index(zentry))
if index == -1 { if index == -1 {