Skip to content

Commit 0e1323c

Browse files
authored
Merge pull request #13009 from anthowan/patch-1
Fix typo in string context docs
2 parents 7156737 + f64b895 commit 0e1323c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/manual/source/language/string-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ It creates an [attribute set] representing the string context, which can be insp
115115
116116
## Clearing string contexts
117117
118-
[`buitins.unsafeDiscardStringContext`](./builtins.md#builtins-unsafeDiscardStringContext) will make a copy of a string, but with an empty string context.
118+
[`builtins.unsafeDiscardStringContext`](./builtins.md#builtins-unsafeDiscardStringContext) will make a copy of a string, but with an empty string context.
119119
The returned string can be used in more ways, e.g. by operators that require the string context to be empty.
120120
The requirement to explicitly discard the string context in such use cases helps ensure that string context elements are not lost by mistake.
121121
The "unsafe" marker is only there to remind that Nix normally guarantees that dependencies are tracked, whereas the returned string has lost them.

0 commit comments

Comments
 (0)