From c34af972bdcbbd11bfec1bd2abb64ca8ba221675 Mon Sep 17 00:00:00 2001 From: Jeremy Polen Date: Wed, 8 Jul 2020 20:09:29 -0500 Subject: [PATCH] Update README.md Fixed two examples --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7cfe1d3..4919b5f 100644 --- a/README.md +++ b/README.md @@ -151,9 +151,9 @@ The following example shows how you can iterate all the keys as strings. using (var iterator = db.CreateIterator()) { // Iterate to print the keys as strings - for (it.SeekToFirst(); it.IsValid(); it.Next()) + for (iterator.SeekToFirst(); iterator.IsValid(); iterator.Next()) { - Console.WriteLine("Key as string: {0}", it.KeyAsString()); + Console.WriteLine("Key as string: {0}", iterator.KeyAsString()); } } ``` @@ -165,9 +165,9 @@ The next example shows how you can iterate all the values in the leveldb instanc using (var iterator = db.CreateIterator()) { // Iterate in reverse to print the values as strings - for (it.SeekToLast(); it.IsValid(); it.Prev()) + for (iterator.SeekToLast(); iterator.IsValid(); iterator.Prev()) { - Console.WriteLine("Value as string: {0}", it.ValueAsString()); + Console.WriteLine("Value as string: {0}", iterator.ValueAsString()); } } ``` @@ -259,4 +259,4 @@ private int LexicographicalCompare(IEnumerable xs, IEnumerable ys) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. \ No newline at end of file +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.