Fix documented annotation
This commit is contained in:
@@ -32,7 +32,7 @@ func chiffre(text string, key int) string {
|
|||||||
output strings.Builder // String builder to store the encoded string
|
output strings.Builder // String builder to store the encoded string
|
||||||
ascii int // ASCII value of the current character
|
ascii int // ASCII value of the current character
|
||||||
)
|
)
|
||||||
//
|
|
||||||
// Convert the text string to lowercase
|
// Convert the text string to lowercase
|
||||||
text = strings.ToLower(text)
|
text = strings.ToLower(text)
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ func IsAcceptable(power string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load JSON file and decode to `[]*Person` list
|
// Load superheros from the given JSON file path.
|
||||||
func Load(path string) (l []*Superhero, err error) {
|
func Load(path string) (l []*Superhero, err error) {
|
||||||
var f *os.File
|
var f *os.File
|
||||||
if f, err = os.Open(path); err != nil {
|
if f, err = os.Open(path); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user