From 21d783d288a74a756213d1bf615898e6995ffb2b Mon Sep 17 00:00:00 2001 From: Gaurav Atreya Date: Fri, 1 Nov 2024 20:16:04 -0400 Subject: [PATCH] Update CHANGES.md; spelling --- CHANGES.md | 1 + src/vector/transaction.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6f03a5a0..952a43d1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,6 +23,7 @@ - Add methods `alternative_name`, `is_nullable`, `is_unique`, `default_value` to `Field` ([#561](https://github.com/georust/gdal/pull/561)) - Add `Defn::geometry_type` ([#562](https://github.com/georust/gdal/pull/562)) - Add `Defn::field_index` and `Feature::field_index` ([#581](https://github.com/georust/gdal/pull/581)) + - Add `Dataset::maybe_start_transaction` which always succeeds to use transaction when possible for speed reasons -- no rollback ([#584](https://github.com/georust/gdal/pull/584)) ### Fixed diff --git a/src/vector/transaction.rs b/src/vector/transaction.rs index 412a1e37..2069f1cb 100644 --- a/src/vector/transaction.rs +++ b/src/vector/transaction.rs @@ -181,9 +181,9 @@ impl Dataset { /// Represents maybe a transaction on a dataset for speed reasons. /// -/// It can be committed by calling [`commit`](MaybeTransaction::commit), but unline [`Transaction`] it can not be rolled back. The transaction part is to make the process speedy when possible. If the [`Dataset`] does not support transaction, it does nothing. +/// It can be committed by calling [`commit`](MaybeTransaction::commit), but unlike [`Transaction`] it can not be rolled back. The transaction part is to make the process speedy when possible. If the [`Dataset`] does not support transaction, it does nothing. /// -/// If the transaction is not explicitly committed when it is dropped, it is implicitely committed, but you will not know if it fails. +/// If the transaction is not explicitly committed when it is dropped, it is implicitly committed, but you will not know if it fails. /// /// The transaction holds a mutable borrow on the `Dataset` that it was created from, so during the /// lifetime of the transaction you will need to access the dataset by dereferencing the