Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Fix language function of NLEmbedding object
Browse files Browse the repository at this point in the history
  • Loading branch information
martial-plains committed Oct 1, 2022
1 parent 1b3b99e commit 52202fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-macios"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
authors = ["Allister Isaiah Harvey <a.i.harvey@icloud.com>"]
description = "Apple Frameworks for Rust"
Expand Down
2 changes: 1 addition & 1 deletion src/natural_language/nl_embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl NLEmbedding {

/// The language of the text in the word embedding.
#[property]
pub fn language(&self) -> NLLanguage {
pub fn language(&self) -> Option<NLLanguage> {
unsafe { to_optional(msg_send![self.m_self(), language]) }
}

Expand Down

0 comments on commit 52202fd

Please sign in to comment.