Fix `undefined: e` in a code snippet

This commit is contained in:
Hiroshi Saito 2018-05-01 10:59:12 +09:00 committed by GitHub
parent b359e57e78
commit 370a6442b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ FoundationDB includes a few modules that make it easy to model data using this a
The :mod:`directory` module lets us open a :ref:`directory <developer-guide-directories>` in the database::
schedulingDir, err := directory.CreateOrOpen(db, []string{"scheduling"}, nil)
if e != nil {
log.Fatal(e)
if err != nil {
log.Fatal(err)
}
The :func:`CreateOrOpen` function returns a :ref:`subspace <developer-guide-sub-keyspaces>` where we'll store our application data. Each subspace has a fixed prefix it uses when defining keys. The prefix corresponds to the first element of a tuple. We decided that we wanted ``"attends"`` and ``"class"`` as our prefixes, so we'll create new subspaces for them within the ``scheduling`` subspace.::