Adds some documentation comments

pull/10/head
Tpt 6 years ago
parent 8b4d71a628
commit 8640d1fb9c
  1. 1
      src/model/literal.rs

@ -81,6 +81,7 @@ impl Literal {
} }
} }
/// Checks if it could be considered as an RDF 1.0 [plain literal](https://www.w3.org/TR/rdf-concepts/#dfn-plain-literal)
pub fn is_plain(&self) -> bool { pub fn is_plain(&self) -> bool {
match self { match self {
Literal::SimpleLiteral(_) => true, Literal::SimpleLiteral(_) => true,

Loading…
Cancel
Save