unison/unison-src/transcripts/fix1356.md
2021-09-27 17:25:23 -04:00

816 B

.> builtins.merge

Step 1: code a term and documentation for it

x = 1
x.doc = [: I am the documentation for x:]

Step 2: add term and documentation, link, and check the documentation

.trunk> add
.trunk> link x.doc x
.trunk> docs x

Step 2.5: We'll save this for later for some reason.

.trunk> alias.term x.doc .backup.x.doc

Step 3: Oops I don't like the doc, so I will re-code it!

x.doc = [: I am the documentation for x, and I now look better:]

Step 4: I add it and expect to see it

.trunk> update
.trunk> docs x

That works great. Let's relink the old doc too.

.trunk> link .backup.x.doc x

Let's check that we see both docs:

.trunk> docs x