Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi authored Jul 2, 2021
1 parent f088ac8 commit a30bf95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ impl Document {
Ok(())
}

/// Sets the [`Document`]'s encoding with the encoding correspondent to `label`.
/// Sets the [`Document`]'s encoding with the encoding corresponding to `label`.
pub fn set_encoding(&mut self, label: &str) -> Result<(), Error> {
match encoding_rs::Encoding::for_label(label.as_bytes()) {
Some(encoding) => self.encoding = encoding,
Expand Down

0 comments on commit a30bf95

Please sign in to comment.