summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Stuart <ggstuart@gmail.com>2015-04-22 23:26:45 +0100
committerGraeme Stuart <ggstuart@gmail.com>2015-04-22 23:26:45 +0100
commit354c352b6a1e18c07284b7451fad61ab104f8006 (patch)
tree67927f70bf5dbcdaf337dda4ec321836ccc2d045
parentf81e0b23d61e3cfda053bf33a7665bdea8039df4 (diff)
downloadrdflib-354c352b6a1e18c07284b7451fad61ab104f8006.tar.gz
fix broken example
The example updates age but should be updating FOAF.age in order to produce the required output
-rw-r--r--docs/intro_to_creating_rdf.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro_to_creating_rdf.rst b/docs/intro_to_creating_rdf.rst
index 2b52ae26..1a2b8de5 100644
--- a/docs/intro_to_creating_rdf.rst
+++ b/docs/intro_to_creating_rdf.rst
@@ -91,7 +91,7 @@ For some properties, only one value per resource makes sense (i.e they are *func
print "Bob is ", g.value( bob, FOAF.age )
# prints: Bob is 42
- g.set( ( bob, age, Literal(43) ) ) # replaces 42 set above
+ g.set( ( bob, FOAF.age, Literal(43) ) ) # replaces 42 set above
print "Bob is now ", g.value( bob, FOAF.age )
# prints: Bob is now 43