Skip to content

Commit b495bbe

Browse files
committed
Fix some typos
1 parent ff094cf commit b495bbe

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

rust/src/collaboration/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl RemoteFile {
390390
// TODO - This passes and returns a c++ `std::vector<T>`. A BnData can be implement in rust, but the
391391
// coreAPI need to include a `FreeData` function, similar to `BNFreeString` does.
392392
// The C++ API just assumes that both use the same allocator, and the python API seems to just leak this
393-
// memory, never droping it.
393+
// memory, never dropping it.
394394
//pub fn download_file<S, F>(&self, mut progress_function: F) -> BnData
395395
//where
396396
// S: BnStrCompatible,

rust/src/collaboration/snapshot.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl RemoteSnapshot {
131131
}
132132

133133
/// If the snapshot has pulled undo entries yet
134-
pub fn has_pulled_undo_entires(&self) -> bool {
134+
pub fn has_pulled_undo_entries(&self) -> bool {
135135
unsafe { BNCollaborationSnapshotHasPulledUndoEntries(self.handle.as_ptr()) }
136136
}
137137

@@ -180,7 +180,7 @@ impl RemoteSnapshot {
180180
///
181181
/// NOTE: If undo entries have not been pulled, they will be pulled upon calling this.
182182
pub fn undo_entries(&self) -> Result<Array<RemoteUndoEntry>, ()> {
183-
if !self.has_pulled_undo_entires() {
183+
if !self.has_pulled_undo_entries() {
184184
self.pull_undo_entries()?;
185185
}
186186
let mut count = 0;
@@ -198,7 +198,7 @@ impl RemoteSnapshot {
198198
&self,
199199
id: RemoteUndoEntryId,
200200
) -> Result<Option<Ref<RemoteUndoEntry>>, ()> {
201-
if !self.has_pulled_undo_entires() {
201+
if !self.has_pulled_undo_entries() {
202202
self.pull_undo_entries()?;
203203
}
204204
let raw = unsafe { BNCollaborationSnapshotGetUndoEntryById(self.handle.as_ptr(), id.0) };

rust/src/file_metadata.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ impl FileMetadata {
209209
}
210210
}
211211

212-
// TOOD:
213212
pub fn create_database(&self, file_path: impl AsRef<Path>) -> bool {
214213
// Databases are created with the root view (Raw).
215214
let Some(raw_view) = self.view_of_type("Raw") else {

0 commit comments

Comments
 (0)