diff options
author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2024-02-23 02:32:27 +0100 |
---|---|---|
committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2024-02-23 02:32:27 +0100 |
commit | 64da6178bf10b92f57352d7d0cfca7eebbd527df (patch) | |
tree | 76a4f1296146fe809ca3a767f392a374f575fa44 | |
parent | d2fa5bafa9faff354c13c3117deb3025ca4a5795 (diff) |
tests.nixpkgs-check-by-name: Fix internal docs
-rw-r--r-- | pkgs/test/nixpkgs-check-by-name/src/nix_file.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/test/nixpkgs-check-by-name/src/nix_file.rs b/pkgs/test/nixpkgs-check-by-name/src/nix_file.rs index 1382f389e2dab..0176164e2ceae 100644 --- a/pkgs/test/nixpkgs-check-by-name/src/nix_file.rs +++ b/pkgs/test/nixpkgs-check-by-name/src/nix_file.rs @@ -86,7 +86,7 @@ pub struct CallPackageArgumentInfo { impl NixFile { /// Returns information about callPackage arguments for an attribute at a specific line/column /// index. - /// If the location is not of the form `<attr> = callPackage <arg1> <arg2>;`, `Ok(Err(String))` is + /// If the location is not of the form `<attr> = callPackage <arg1> <arg2>;`, `Ok((None, String))` is /// returned, with String being how the definition looks like. /// /// This function only returns `Err` for problems that can't be caused by the Nix contents, @@ -109,7 +109,10 @@ impl NixFile { /// /// You'll get back /// ```rust - /// Ok(Ok(CallPackageArgumentInfo { path = Some("default.nix"), empty_arg: true })) + /// Ok(( + /// Some(CallPackageArgumentInfo { path = Some("default.nix"), empty_arg: true }), + /// "foo = self.callPackage ./default.nix { };", + /// )) /// ``` /// /// Note that this also returns the same for `pythonPackages.callPackage`. It doesn't make an |