Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor typos #5

Merged
merged 2 commits into from
Feb 21, 2017
Merged

Fix minor typos #5

merged 2 commits into from
Feb 21, 2017

Conversation

mohamedhayibor
Copy link
Contributor

No description provided.

@@ -57,14 +57,14 @@ eRROR_ENVVAR_NOT_FOUND = 203
-- package instead.
--
-- Throws `Control.Exception.IOException` if @name@ is the empty string or
-- contains an equals sign.
-- contains an equal sign.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "equals sign" is perfectly correct and fine.

setEnv :: String -> String -> IO ()
setEnv key value_
| null value = unsetEnv key
| otherwise = setEnv_ key value
where
-- NOTE: Anything that follows NUL is ignored on both POSIX and Windows.
-- We still strip it manually so that the null check above succeds if a
-- We still strip it manually so that the null check above succeeds if a
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@sol
Copy link
Owner

sol commented Feb 13, 2017

I only want the second change, see my comments. If you can adapt this, it's good for merge.

@mohamedhayibor
Copy link
Contributor Author

Made the change. Thanks for writing out the lib.

@sol sol merged commit 3fa1250 into sol:master Feb 21, 2017
@sol
Copy link
Owner

sol commented Feb 21, 2017

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants