snake_case -> camelCase
This commit is contained in:
parent
445145d5b9
commit
1e7985942b
@ -402,7 +402,7 @@ void printAttr(Context & ctx, Out & out, const std::string & path, Value & root)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool has_example(Context & ctx, Value & option)
|
bool hasExample(Context & ctx, Value & option)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
|
findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
|
||||||
@ -423,7 +423,7 @@ void printOption(Context & ctx, Out & out, const std::string & path, Value & opt
|
|||||||
out << "\n\nType:\n";
|
out << "\n\nType:\n";
|
||||||
printAttr(ctx, out, "type.description", option);
|
printAttr(ctx, out, "type.description", option);
|
||||||
|
|
||||||
if (has_example(ctx, option)) {
|
if (hasExample(ctx, option)) {
|
||||||
out << "\n\nExample:\n";
|
out << "\n\nExample:\n";
|
||||||
printAttr(ctx, out, "example", option);
|
printAttr(ctx, out, "example", option);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user