We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd2de4a commit bda624cCopy full SHA for bda624c
1 file changed
src/CallerAttributes.mo
@@ -1,5 +1,9 @@
1
/// Allows accessing the Internet Computer's caller attributes.
2
/// TODO: link to official documentation, once it's available.
3
+///
4
+/// ```motoko name=import
5
+/// import CallerAttributes "mo:core/CallerAttributes";
6
+/// ```
7
8
import Prim "mo:⛔";
9
import Text "Text";
@@ -19,9 +23,8 @@ module {
19
23
/// of principal texts, for example:
20
24
/// `"aaaaa-aa,un4fu-tqaaa-aaaab-qadjq-cai"`.
21
25
///
22
- /// ```motoko no-repl
- /// import CallerAttributes "mo:core/CallerAttributes";
- ///
26
+ /// Example:
27
+ /// ```motoko include=import no-validate
28
/// persistent actor {
29
/// public shared func handle() : async () {
30
/// switch (CallerAttributes.getAttributes()) {
0 commit comments