Skip to content

Commit e70e30e

Browse files
committed
fix(database): typo
1 parent b20fdb7 commit e70e30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func init() {
186186
Before we get into loading and saving our players, we need to create a simple helper method that will decode our results from the MongoDB format (BSON). You don't really need to understand what goes on in this function, but bear in mind that additional modifications will be made to this in later guides:
187187

188188
```go minecraft/data/user.go
189-
unc decodeSingleUserResult(result *mongo.SingleResult) (User, error) {
189+
func decodeSingleUserResult(result *mongo.SingleResult) (User, error) {
190190
var u = DefaultUser("")
191191

192192
err := result.Decode(&u)

0 commit comments

Comments
 (0)