Skip to content

Commit

Permalink
Document possible panics for std::env::{set_var, unset_var}
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Oct 25, 2015
1 parent 92dd81a commit 5794950
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libstd/env.rs
Expand Up @@ -260,6 +260,11 @@ impl Error for VarError {
/// - [Austin Group Bugzilla](http://austingroupbugs.net/view.php?id=188)
/// - [GNU C library Bugzilla](https://sourceware.org/bugzilla/show_bug.cgi?id=15607#c2)
///
/// # Panics
///
/// This function panics if the `key` string is empty or contains an ASCII
/// equals sign.
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -292,6 +297,11 @@ fn _set_var(k: &OsStr, v: &OsStr) {
/// - [Austin Group Bugzilla](http://austingroupbugs.net/view.php?id=188)
/// - [GNU C library Bugzilla](https://sourceware.org/bugzilla/show_bug.cgi?id=15607#c2)
///
/// # Panics
///
/// This function panics if the `key` string is empty or contains an ASCII
/// equals sign.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit 5794950

Please sign in to comment.