diff --git a/lib/src/model/literal.rs b/lib/src/model/literal.rs index d1aea2f3..cde52a32 100644 --- a/lib/src/model/literal.rs +++ b/lib/src/model/literal.rs @@ -75,12 +75,12 @@ impl Literal { /// Builds a RDF [language-tagged string](https://www.w3.org/TR/rdf11-concepts/#dfn-language-tagged-string) /// - /// It is the responability of the caller to check that `language` + /// It is the responsibility of the caller to check that `language` /// is valid [BCP47](https://tools.ietf.org/html/bcp47) language tag, /// and is lowercase. /// - /// If in doubt, you should rather use - /// [`new_language_tagged_literal`](#method.new_language_tagged_literal). + /// Except if you really know what you do, + /// you should use [`new_language_tagged_literal`](#method.new_language_tagged_literal). pub fn new_language_tagged_literal_unchecked( value: impl Into, language: impl Into, diff --git a/lib/src/model/named_node.rs b/lib/src/model/named_node.rs index dcd55420..87723d79 100644 --- a/lib/src/model/named_node.rs +++ b/lib/src/model/named_node.rs @@ -32,10 +32,9 @@ impl NamedNode { /// Builds a RDF [IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-iri) from a string. /// - /// Note that it is the caller's responsibility to ensure that `iri` - /// is a valid IRI. + /// It is the caller's responsibility to ensure that `iri` is a valid IRI. /// - /// See also [`parse`](#method.parse). + /// Except if you really know what you do, you should use [`parse`](#method.parse). pub fn new_unchecked(iri: impl Into) -> Self { Self { iri: iri.into() } }