aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/test.txt
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-06-09 04:43:57 +0100
committerZac Pullar-Strecker <[email protected]>2020-06-30 09:02:46 +0100
commit2023af53f09ed9466c6d7442d6830276eba19b45 (patch)
tree84924a0e47a70b0255b1811f127147e9a9d92682 /crates/ra_syntax/src/ast/test.txt
parent2bd717139918e15e537dcd833bb003e85d24b3d1 (diff)
Hover doc link rewriting
Diffstat (limited to 'crates/ra_syntax/src/ast/test.txt')
-rw-r--r--crates/ra_syntax/src/ast/test.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/test.txt b/crates/ra_syntax/src/ast/test.txt
new file mode 100644
index 000000000..f746bf1e7
--- /dev/null
+++ b/crates/ra_syntax/src/ast/test.txt
@@ -0,0 +1,15 @@
1The context is a general utility struct provided on event dispatches, which
2helps with dealing with the current "context" of the event dispatch.
3The context also acts as a general high-level interface over the associated
4[`Shard`] which received the event, or the low-level [`http`] module.
5
6The context contains "shortcuts", like for interacting with the shard.
7Methods like [`set_activity`] will unlock the shard and perform an update for
8you to save a bit of work.
9
10A context will only live for the event it was dispatched for. After the
11event handler finished, it is destroyed and will not be re-used.
12
13[`Shard`]: ../gateway/struct.Shard.html
14[`http`]: ../http/index.html
15[`set_activity`]: #method.set_activity