@@ -52,8 +52,7 @@ impl<Err> ObjectStore<Err> {
5252
5353 /// Delete an index from this object store
5454 ///
55- /// Note that this method can only be called from within an `on_upgrade_needed` callback. It returns
56- /// a builder, and calling the `create` method on this builder will perform the actual creation.
55+ /// Note that this method can only be called from within an `on_upgrade_needed` callback.
5756 ///
5857 /// Internally, this uses [`IDBObjectStore::deleteIndex`](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/deleteIndex).
5958 pub fn delete_index ( & self , name : & str ) -> crate :: Result < ( ) , Err > {
@@ -66,7 +65,7 @@ impl<Err> ObjectStore<Err> {
6665 } )
6766 }
6867
69- /// Add the value `val ` to this object store, and return its auto-computed key
68+ /// Add the value `value ` to this object store, and return its auto-computed key
7069 ///
7170 /// This will error if the key already existed.
7271 ///
@@ -78,7 +77,7 @@ impl<Err> ObjectStore<Err> {
7877 }
7978 }
8079
81- /// Add the value `val ` to this object store, with key `key`
80+ /// Add the value `value ` to this object store, with key `key`
8281 ///
8382 /// This will error if the key already existed.
8483 ///
@@ -96,7 +95,7 @@ impl<Err> ObjectStore<Err> {
9695 }
9796 }
9897
99- /// Sets the value `val ` to this object store, and return its auto-computed key
98+ /// Add the value `value ` to this object store, and return its auto-computed key
10099 ///
101100 /// This will overwrite the previous value if the key already existed.
102101 ///
@@ -108,7 +107,7 @@ impl<Err> ObjectStore<Err> {
108107 }
109108 }
110109
111- /// Add the value `val ` to this object store, with key `key`
110+ /// Add the value `value ` to this object store, with key `key`
112111 ///
113112 /// This will overwrite the previous value if the key already existed.
114113 ///
@@ -126,7 +125,7 @@ impl<Err> ObjectStore<Err> {
126125 }
127126 }
128127
129- /// Clears this object store
128+ /// Clear this object store
130129 ///
131130 /// Internally, this uses [`IDBObjectStore::clear`](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/clear).
132131 pub fn clear ( & self ) -> impl Future < Output = crate :: Result < ( ) , Err > > {
@@ -144,7 +143,7 @@ impl<Err> ObjectStore<Err> {
144143 }
145144 }
146145
147- /// Counts the number of objects in this store
146+ /// Count the number of objects in this store
148147 ///
149148 /// Internally, this uses [`IDBObjectStore::count`](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count).
150149 pub fn count ( & self ) -> impl Future < Output = crate :: Result < usize , Err > > {
0 commit comments