Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fmt.Println corrected to fmt.Printf with formatted string.

  • Loading branch information...
commit 9377ec9aa974ae8a89b4fd1dedb5e07151cbd886 1 parent 1a097df
Timon Wong timonwong authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  more-interfaces.rst
2  more-interfaces.rst
View
@@ -93,7 +93,7 @@ Let's use this comma-ok type assertion in an example:
} else if value, ok := element.(Person); ok {
fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
} else {
- fmt.Println("list[%d] is of a different type", index)
+ fmt.Printf("list[%d] is of a different type\n", index)
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.