Kaynağa Gözat

Update GoDoc and typo fixed

xuri 6 yıl önce
ebeveyn
işleme
dc8210d4a7
3 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 2 2
      docProps.go
  2. 1 1
      sheet.go
  3. 3 3
      styles.go

+ 2 - 2
docProps.go

@@ -31,7 +31,7 @@ import (
 //     Description    | An explanation of the content of the resource.
 //                    |
 //     LastModifiedBy | The user who performed the last modification. The identification is
-//                    |  environment-specific.
+//                    | environment-specific.
 //                    |
 //     Language       | The language of the intellectual content of the resource.
 //                    |
@@ -40,7 +40,7 @@ import (
 //     Revision       | The topic of the content of the resource.
 //                    |
 //     ContentStatus  | The status of the content. For example: Values might include "Draft",
-//                    | "Reviewed", and "Final"
+//                    | "Reviewed" and "Final"
 //                    |
 //     Category       | A categorization of the content of this package.
 //                    |

+ 1 - 1
sheet.go

@@ -1221,7 +1221,7 @@ func (f *File) GetPageLayout(sheet string, opts ...PageLayoutOptionPtr) error {
 }
 
 // SetDefinedName provides a function to set the defined names of the workbook
-// or worksheet. If not specified scopr, the default scope is workbook.
+// or worksheet. If not specified scope, the default scope is workbook.
 // For example:
 //
 //    f.SetDefinedName(&excelize.DefinedName{

+ 3 - 3
styles.go

@@ -1946,13 +1946,13 @@ func (f *File) NewConditionalStyle(style string) (int, error) {
 }
 
 // GetDefaultFont provides the default font name currently set in the workbook
-// Documents generated by excelize start with Calibri
+// Documents generated by excelize start with Calibri.
 func (f *File) GetDefaultFont() string {
 	font := f.readDefaultFont()
 	return font.Name.Val
 }
 
-// SetDefaultFont changes the default font in the workbook
+// SetDefaultFont changes the default font in the workbook.
 func (f *File) SetDefaultFont(fontName string) {
 	font := f.readDefaultFont()
 	font.Name.Val = fontName
@@ -1962,7 +1962,7 @@ func (f *File) SetDefaultFont(fontName string) {
 	s.CellStyles.CellStyle[0].CustomBuiltIn = &custom
 }
 
-// readDefaultFont provides an unmarshalled font value
+// readDefaultFont provides an unmarshalled font value.
 func (f *File) readDefaultFont() *xlsxFont {
 	s := f.stylesReader()
 	return s.Fonts.Font[0]