Skip to content

Commit

Permalink
This fix some function names in comment (qax-os#1747)
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <[email protected]>
  • Loading branch information
cuishuang authored Dec 7, 2023
1 parent 18a160c commit 77ece87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func (c *xlsxC) setStr(val string) {
c.V, c.XMLSpace = trimCellValue(val, false)
}

// getCellDate parse cell value which containing a boolean.
// getCellBool parse cell value which containing a boolean.
func (c *xlsxC) getCellBool(f *File, raw bool) (string, error) {
if !raw {
if c.V == "1" {
Expand Down
2 changes: 1 addition & 1 deletion crypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func (c *cfb) writeUint64(value int) {
c.writeBytes(buf)
}

// writeBytes write strings in the stream by a given value with an offset.
// writeStrings write strings in the stream by a given value with an offset.
func (c *cfb) writeStrings(value string) {
encoder := unicode.UTF16(unicode.LittleEndian, unicode.IgnoreBOM).NewEncoder()
buffer, err := encoder.Bytes([]byte(value))
Expand Down
2 changes: 1 addition & 1 deletion slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (f *File) genSlicerName(name string) string {
return slicerName
}

// genSlicerNames generates a unique slicer cache name by giving the slicer name.
// genSlicerCacheName generates a unique slicer cache name by giving the slicer name.
func (f *File) genSlicerCacheName(name string) string {
var (
cnt int
Expand Down
6 changes: 3 additions & 3 deletions styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -3238,7 +3238,7 @@ func drawCondFmtErrors(p int, ct, ref, GUID string, format *ConditionalFormatOpt
}, nil
}

// drawCondFmtErrors provides a function to create conditional formatting rule
// drawCondFmtNoErrors provides a function to create conditional formatting rule
// for cells without errors by given priority, criteria type and format settings.
func drawCondFmtNoErrors(p int, ct, ref, GUID string, format *ConditionalFormatOptions) (*xlsxCfRule, *xlsxX14CfRule) {
return &xlsxCfRule{
Expand All @@ -3250,7 +3250,7 @@ func drawCondFmtNoErrors(p int, ct, ref, GUID string, format *ConditionalFormatO
}, nil
}

// drawCondFmtErrors provides a function to create conditional formatting rule
// drawCondFmtBlanks provides a function to create conditional formatting rule
// for blank cells by given priority, criteria type and format settings.
func drawCondFmtBlanks(p int, ct, ref, GUID string, format *ConditionalFormatOptions) (*xlsxCfRule, *xlsxX14CfRule) {
return &xlsxCfRule{
Expand All @@ -3262,7 +3262,7 @@ func drawCondFmtBlanks(p int, ct, ref, GUID string, format *ConditionalFormatOpt
}, nil
}

// drawCondFmtErrors provides a function to create conditional formatting rule
// drawCondFmtNoBlanks provides a function to create conditional formatting rule
// for no blanks cells by given priority, criteria type and format settings.
func drawCondFmtNoBlanks(p int, ct, ref, GUID string, format *ConditionalFormatOptions) (*xlsxCfRule, *xlsxX14CfRule) {
return &xlsxCfRule{
Expand Down

0 comments on commit 77ece87

Please sign in to comment.