Unverified Commit 6d9d3014 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

treewide: fix typos in comments (#413240)

parents f54b76bc c77ac9df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1747,7 +1747,7 @@ rec {

  /**
    Get the first of the `outputs` provided by the package, or the default.
    This function is alligned with `_overrideFirst()` from the `multiple-outputs.sh` setup hook.
    This function is aligned with `_overrideFirst()` from the `multiple-outputs.sh` setup hook.
    Like `getOutput`, the function is idempotent.

    # Inputs
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ rec {

      extensions = composeManyExtensions [ overlayA overlayB ];

      # Caluculate the fixed point of all composed overlays.
      # Calculate the fixed point of all composed overlays.
      fixedpoint = lib.fix (lib.extends extensions original );

    in fixedpoint
+2 −2
Original line number Diff line number Diff line
@@ -404,7 +404,7 @@ rec {
    ```nix
    myType = mkOptionType {
      name = "myType";
      merge = mergeDefaultOption; # <- This line is redundant. It is the default aready.
      merge = mergeDefaultOption; # <- This line is redundant. It is the default already.
    };
    ```

@@ -470,7 +470,7 @@ rec {
    args@{
      message,
      # WARNING: the default merge function assumes that the definition is a valid (option) value. You MUST pass a merge function if the return value needs to be
      #   - type checked beyond what .check does (which should be very litte; only on the value head; not attribute values, etc)
      #   - type checked beyond what .check does (which should be very little; only on the value head; not attribute values, etc)
      #   - if you want attribute values to be checked, or list items
      #   - if you want coercedTo-like behavior to work
      merge ? loc: defs: (head defs).value,
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ let
    if pos == null then "" else " at ${pos.file}:${toString pos.line}:${toString pos.column}";

  # Internal functor to help for migrating functor.wrapped to functor.payload.elemType
  # Note that individual attributes can be overriden if needed.
  # Note that individual attributes can be overridden if needed.
  elemTypeFunctor =
    name:
    { elemType, ... }@payload:
+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@

  Documentation rendered as AsciiDoc. This is useful for e.g. man pages.

  > Note: NixOS itself uses this ouput to to build the configuration.nix man page"
  > Note: NixOS itself uses this output to to build the configuration.nix man page"

  ## optionsNix

@@ -59,7 +59,7 @@
  let
    # Evaluate a NixOS configuration
    eval = import (pkgs.path + "/nixos/lib/eval-config.nix") {
      # Overriden explicitly here, this would include all modules from NixOS otherwise.
      # Overridden explicitly here, this would include all modules from NixOS otherwise.
      # See: docs of eval-config.nix for more details
      baseModules = [];
      modules = [
Loading