diff options
author | Chuck <chuck@intelligence.org> | 2019-09-20 13:37:12 -0700 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2019-11-04 15:11:45 +0100 |
commit | 1e7985942b4f156d20ce2ddac9fc133a9091ed5b (patch) | |
tree | cc7cc62ac044a4a405b537e829aa8189ed90665c | |
parent | 445145d5b9a33a9ded5a6928c52ddaeb862a8a8e (diff) | |
download | nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar.gz nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar.bz2 nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar.lz nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar.xz nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.tar.zst nixpkgs-1e7985942b4f156d20ce2ddac9fc133a9091ed5b.zip |
snake_case -> camelCase
-rw-r--r-- | nixos/modules/installer/tools/nixos-option/nixos-option.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/installer/tools/nixos-option/nixos-option.cc b/nixos/modules/installer/tools/nixos-option/nixos-option.cc index c0c9ec0e5b4..9b92dc829cd 100644 --- a/nixos/modules/installer/tools/nixos-option/nixos-option.cc +++ b/nixos/modules/installer/tools/nixos-option/nixos-option.cc @@ -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 { 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"; printAttr(ctx, out, "type.description", option); - if (has_example(ctx, option)) { + if (hasExample(ctx, option)) { out << "\n\nExample:\n"; printAttr(ctx, out, "example", option); } |