Skip to content

Commit f64b895

Browse files
Fix typo in string context docs
1 parent 7156737 commit f64b895

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)