Skip to content

Commit 7530820

Browse files
authored
Merge pull request #81 from TorstenDittmann/master
fix(c#): example docs syntax
2 parents 7d762df + 7baaead commit 7530820

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/dotnet/docs/example.md.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Client client = new Client();
44

55
{% if method.security|length > 0 %}
66
client
7-
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
7+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
88
{% for node in method.security %}
99
{% for key,header in node|keys %}
10-
.Set{{header | caseUcfirst}}("{{node[header]["x-appwrite"]["demo"]}}") # {{node[header].description}}
10+
.Set{{header | caseUcfirst}}("{{node[header]["x-appwrite"]["demo"]}}") // {{node[header].description}}
1111
{% endfor %}
1212
{% endfor %};
1313

1414
{% endif %}
1515
{{ service.name | caseUcfirst }} {{ service.name | caseCamel }} = new {{ service.name | caseUcfirst }}(client);
1616

17-
result = {{ service.name | caseCamel }}.{{ method.name | caseCamel }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{ parameter | paramExample }}{% endif %}{% endfor %});
17+
{% if method.type == 'location' %}string{% else %}HttpResponseMessage{% endif %} result = await {{ service.name | caseCamel }}.{{ method.name | caseUcfirst }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{ parameter | paramExample }}{% endif %}{% endfor %});

0 commit comments

Comments
 (0)