fix slight typo in json_pack apiref example
[jansson.git] / doc / apiref.rst
index 1c3a85b..d6f451c 100644 (file)
@@ -1073,7 +1073,7 @@ More examples::
   json_pack("{s:i, s:i}", "foo", 42, "bar", 7);
 
   /* Build the JSON array [[1, 2], {"cool": true}] */
-  json_pack("[[i,i],{s:b]]", 1, 2, "cool", 1);
+  json_pack("[[i,i],{s:b}]", 1, 2, "cool", 1);
 
 
 .. _apiref-unpack: