Skip to content

Commit

Permalink
Merge pull request #613 from jayvdb/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
Enet4 authored Dec 22, 2024
2 parents 4ce83d7 + d2d538d commit 4787c42
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
11 changes: 10 additions & 1 deletion object/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl<D, T> OpenFileOptions<D, T> {
}

/// Set the transfer syntax index to use when reading the file.
pub fn tranfer_syntax_index<Tr>(self, ts_index: Tr) -> OpenFileOptions<D, Tr>
pub fn transfer_syntax_index<Tr>(self, ts_index: Tr) -> OpenFileOptions<D, Tr>
where
Tr: TransferSyntaxIndex,
{
Expand All @@ -116,6 +116,15 @@ impl<D, T> OpenFileOptions<D, T> {
}
}

/// Set the transfer syntax index to use when reading the file.
#[deprecated(since="0.8.1", note="please use `transfer_syntax_index` instead")]
pub fn tranfer_syntax_index<Tr>(self, ts_index: Tr) -> OpenFileOptions<D, Tr>
where
Tr: TransferSyntaxIndex,
{
self.transfer_syntax_index(ts_index)
}

/// Set the data element dictionary to use when reading the file.
pub fn dictionary<Di>(self, dict: Di) -> OpenFileOptions<Di, T>
where
Expand Down
2 changes: 1 addition & 1 deletion object/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl AccessError {
#[non_exhaustive]
#[snafu(visibility(pub(crate)))]
pub enum AtAccessError {
/// Missing itermediate sequence for {selector} at step {step_index}
/// Missing intermediate sequence for {selector} at step {step_index}
MissingSequence {
selector: AttributeSelector,
step_index: u32,
Expand Down
2 changes: 1 addition & 1 deletion object/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::FileDicomObject;
#[non_exhaustive]
#[snafu(visibility(pub(crate)))]
pub enum ApplyError {
/// Missing itermediate sequence for {selector} at step {step_index}
/// Missing intermediate sequence for {selector} at step {step_index}
MissingSequence {
selector: AttributeSelector,
step_index: u32,
Expand Down
4 changes: 2 additions & 2 deletions storescp/src/store_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn run_store_async(
} else if data_value.value_type == PDataValueType::Command
&& data_value.is_last
{
// commands are always in implict VR LE
// commands are always in implicit VR LE
let ts =
dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN
.erased();
Expand Down Expand Up @@ -193,7 +193,7 @@ pub async fn run_store_async(
info!("Stored {}", file_path.display());

// send C-STORE-RSP object
// commands are always in implict VR LE
// commands are always in implicit VR LE
let ts =
dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN
.erased();
Expand Down
4 changes: 2 additions & 2 deletions storescp/src/store_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn run_store_sync(scu_stream: TcpStream, args: &App) -> Result<(), Whatever>
} else if data_value.value_type == PDataValueType::Command
&& data_value.is_last
{
// commands are always in implict VR LE
// commands are always in implicit VR LE
let ts =
dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN
.erased();
Expand Down Expand Up @@ -191,7 +191,7 @@ pub fn run_store_sync(scu_stream: TcpStream, args: &App) -> Result<(), Whatever>
info!("Stored {}", file_path.display());

// send C-STORE-RSP object
// commands are always in implict VR LE
// commands are always in implicit VR LE
let ts =
dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN
.erased();
Expand Down

0 comments on commit 4787c42

Please sign in to comment.