Update GoDoc and typo fixed

This commit is contained in:
xuri 2019-06-30 19:50:47 +08:00
parent 54def7eaad
commit dc8210d4a7
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
3 changed files with 6 additions and 6 deletions

View File

@ -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.
// |

View File

@ -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{

View File

@ -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]