# HG changeset patch # User Steve Losh # Date 1509767311 14400 # Node ID abff4fe021789ea5585f7aec2fd0ce2b310a9398 # Parent 25f05d94b33629cea2d3282d8fcbf94a7422d340 Fix docs diff -r 25f05d94b336 -r abff4fe02178 docs/02-usage.markdown --- a/docs/02-usage.markdown Fri Nov 03 23:45:02 2017 -0400 +++ b/docs/02-usage.markdown Fri Nov 03 23:48:31 2017 -0400 @@ -153,11 +153,11 @@ :::lisp (define-rule (metal :distribution :weighted) - (10 iron) - (5 steel) - (2 silver) - (1 gold) - (1 platinum)) + (10 :iron) + (5 :steel) + (2 :silver) + (1 :gold) + (1 :platinum)) Weighting each term by hand can be tedious. Chancery can automatically calculate weights based on the order of the body terms according to [Zipf's