Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,423 for Trailing (0.24 sec)

  1. test/initcomma.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test trailing commas. DO NOT gofmt THIS FILE.
    
    package main
    
    var a = []int{1, 2, }
    var b = [5]int{1, 2, 3, }
    var c = []int{1, }
    var d = [...]int{1, 2, 3, }
    
    func main() {
    	if len(a) != 2 {
    		println("len a", len(a))
    		panic("fail")
    	}
    	if len(b) != 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 20:44:24 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go

    //   - Uint32/SetUint32: ifindex, metric, mtu
    type Ifreq struct{ raw ifreq }
    
    // NewIfreq creates an Ifreq with the input network interface name after
    // validating the name does not exceed IFNAMSIZ-1 (trailing NULL required)
    // bytes.
    func NewIfreq(name string) (*Ifreq, error) {
    	// Leave room for terminating NULL byte.
    	if len(name) >= IFNAMSIZ {
    		return nil, EINVAL
    	}
    
    	var ifr ifreq
    	copy(ifr.Ifrn[:], name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/go/parser/resolver_test.go

    // file, and use labels must refer to an existing declaration label. It's OK
    // for a comment to denote both the declaration and use of a label (e.g.
    // '=@foo'). Leading and trailing whitespace is ignored. Any comment not
    // beginning with '=' or '@' is ignored.
    func TestResolution(t *testing.T) {
    	dir := filepath.Join("testdata", "resolution")
    	fis, err := os.ReadDir(dir)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/BooleanQuestionPromptEventTest.groovy

        def "formats prompt"() {
            def event = new BooleanQuestionPromptEvent(123, "question?", true)
    
            expect:
            event.prompt == "question? (default: yes) [yes, no] " // trailing space
        }
    
        def "accepts valid input"() {
            def event = new BooleanQuestionPromptEvent(123, "question?", true)
    
            expect:
            def result = event.convert(input)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/common/source_code.cc

      if (absl::StrContains(line, '\n')) {
        LOG(ERROR) << "Attempt to add multiple lines; bad formatting is likely.";
      } else if (had_trailing_newline) {
        LOG(WARNING) << "Superfluous trailing newline in '" << line << "'";
      }
      lines_.push_back({indent, string(absl::StripTrailingAsciiWhitespace(line))});
    }
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResourceLocator.java

         * the root URL <code>smb://</code> is also <code>smb://</code>. If this
         * <tt>SmbFile</tt> refers to a workgroup, server, share, or directory,
         * the name will include a trailing slash '/' so that composing new
         * <tt>SmbFile</tt>s will maintain the trailing slash requirement.
         *
         * @return The last component of the URL associated with this SMB
         *         resource or <code>smb://</code> if the resource is <code>smb://</code>
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  7. src/cmd/gofmt/internal.go

    			indent++
    		}
    	}
    	if indent == 0 && hasSpace {
    		indent = 1
    	}
    	for i := 0; i < indent; i++ {
    		res = append(res, '\t')
    	}
    
    	// Format the source.
    	// Write it without any leading and trailing space.
    	cfg.Indent = indent + indentAdj
    	var buf bytes.Buffer
    	err := cfg.Fprint(&buf, fset, file)
    	if err != nil {
    		return nil, err
    	}
    	out := sourceAdj(buf.Bytes(), cfg.Indent)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  8. src/go/format/internal.go

    			indent++
    		}
    	}
    	if indent == 0 && hasSpace {
    		indent = 1
    	}
    	for i := 0; i < indent; i++ {
    		res = append(res, '\t')
    	}
    
    	// Format the source.
    	// Write it without any leading and trailing space.
    	cfg.Indent = indent + indentAdj
    	var buf bytes.Buffer
    	err := cfg.Fprint(&buf, fset, file)
    	if err != nil {
    		return nil, err
    	}
    	out := sourceAdj(buf.Bytes(), cfg.Indent)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/Util.h

     *  @param szString  The string to trim.
     */
    
    CU_EXPORT void CU_trim_right(char *szString);
    /**< 
     *  Trims trailing whitespace from the specified string.
     *  @param szString  The string to trim.
     */
    
    CU_EXPORT void CU_trim(char *szString);
    /**< 
     *  Trims leading and trailing whitespace from the specified string.
     *  @param szString  The string to trim.
     */
    
    CU_EXPORT size_t CU_number_width(int number);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. .github/PULL_REQUEST_TEMPLATE

      + The package name goes before the colon
      + The part after the colon uses the verb tense + phrase that completes the blank in,
        "This change modifies Go to ___________"
      + Lowercase verb after the colon
      + No trailing period
      + Keep the title as short as possible. ideally under 76 characters or shorter
    + No Markdown
    + The first PR comment (this one) is wrapped at 76 characters, unless it's
      really needed (ASCII art, table, or long link)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 02:07:46 UTC 2018
    - 1.2K bytes
    - Viewed (0)
Back to top