changed documentation of securitylevel argument

This commit is contained in:
boombuler 2017-06-05 13:46:48 +02:00
parent dbbaa13b52
commit e6481dd88f
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ const (
) )
// Encodes the given data as PDF417 barcode. // Encodes the given data as PDF417 barcode.
// securityLevel can be any value below 9 // securityLevel should be between 0 and 8. The higher the number, the more
// additional error-correction codes are added.
func Encode(data string, securityLevel byte) (barcode.Barcode, error) { func Encode(data string, securityLevel byte) (barcode.Barcode, error) {
if securityLevel >= 9 { if securityLevel >= 9 {
return nil, fmt.Errorf("Invalid security level %d", securityLevel) return nil, fmt.Errorf("Invalid security level %d", securityLevel)