Skip to content

Commit

Permalink
fixup! allow closing writer explicitly
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
tomjnixon committed Nov 13, 2023
1 parent 56ce4f2 commit 050ac99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/bw64/writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace bw64 {
/// required information, i.e. the final chunk sizes etc.
///
/// It is recommended to call this before the destructor, to handle
/// excpetions. If it does throw, this object may be in an invalid state,
/// exceptions. If it does throw, this object may be in an invalid state,
/// so do not try again without creating a new object.
void close() {
if (!fileStream_.is_open()) return;
Expand All @@ -102,7 +102,7 @@ namespace bw64 {

/// destructor; this will finalise and close the file if it has not
/// already been done, but it is recommended to call close() first to
/// handle excpetions
/// handle exceptions
~Bw64Writer() { close(); }

/// @brief Get format tag
Expand Down

0 comments on commit 050ac99

Please sign in to comment.