Skip to content

Commit 7c01634

Browse files
authored
Merge pull request #103 from rdfjs/literal-factory-signature
Clarify signature of .literal factory
2 parents 9f37e0a + 7628dce commit 7c01634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ see the individual [interface definitions](#data-interfaces)
125125
- `NamedNode .namedNode(string value)` returns a new instance of NamedNode.
126126
- `BlankNode .blankNode([string value])` returns a new instance of BlankNode.
127127
If the value parameter is undefined a new identifier for the blank node is generated for each call.
128-
- `Literal .literal(string value, [string languageOrDatatype])` returns a new
128+
- `Literal .literal(string value, [string|NamedNode languageOrDatatype])` returns a new
129129
instance of Literal. If languageOrDatatype is a NamedNode, then it is used for the value of `.datatype`.
130130
Otherwise languageOrDatatype is used for the value of `.language`.
131131
- `Variable .variable(string value)` returns a new instance of Variable. This method is optional.

0 commit comments

Comments
 (0)